AhMyth 9000392778 beta version há 8 anos atrás
..
.editorconfig 9000392778 beta version há 8 anos atrás
.npmignore 9000392778 beta version há 8 anos atrás
.travis.yml 9000392778 beta version há 8 anos atrás
history.md 9000392778 beta version há 8 anos atrás
index.js 9000392778 beta version há 8 anos atrás
license 9000392778 beta version há 8 anos atrás
makefile 9000392778 beta version há 8 anos atrás
package.json 9000392778 beta version há 8 anos atrás
readme.md 9000392778 beta version há 8 anos atrás
test.js 9000392778 beta version há 8 anos atrás

readme.md

homedir

Build Status NPM version NPM downloads LICENSE

Platform agnostic user home directory path resolution (i.e. man 5 passwd) for Node.js.

The user's home directory. This is the full path name where the user will be placed on login.

OSX

homedir();
#=> /Users/wilmoore

homedir('Guest');
#=> /Users/Guest

Windows

homedir();
#=> C:\Users\wilmoore

homedir('Public');
#=> C:\Users\Public

Linux

homedir();
#=> /home/wilmoore

homedir('guest');
#=> /home/guest

Installation

npm install homedir --save

Alternatives

License

MIT