|
|
před 8 roky | |
|---|---|---|
| .. | ||
| .editorconfig | před 8 roky | |
| .npmignore | před 8 roky | |
| .travis.yml | před 8 roky | |
| history.md | před 8 roky | |
| index.js | před 8 roky | |
| license | před 8 roky | |
| makefile | před 8 roky | |
| package.json | před 8 roky | |
| readme.md | před 8 roky | |
| test.js | před 8 roky | |
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.
homedir();
#=> /Users/wilmoore
homedir('Guest');
#=> /Users/Guest
homedir();
#=> C:\Users\wilmoore
homedir('Public');
#=> C:\Users\Public
homedir();
#=> /home/wilmoore
homedir('guest');
#=> /home/guest
npm install homedir --save