Path has no method 'parse' problem

I have tried this code in meteor js but it will display error “TypeError: Object #Object> has no method ‘parse’”

path = Npm.require('path')
filename = path.parse('/home/user/dir/file.txt')

but in the documentaion in node js parse method should exisit in path library

Any tips?

I have found the problem parse method is only available for node 0.12 and my node is 0.10