|
|
пре 8 година | |
|---|---|---|
| .. | ||
| .editorconfig | пре 8 година | |
| .npmignore | пре 8 година | |
| .travis.yml | пре 8 година | |
| history.md | пре 8 година | |
| index.js | пре 8 година | |
| license | пре 8 година | |
| makefile | пре 8 година | |
| package.json | пре 8 година | |
| readme.md | пре 8 година | |
| test.js | пре 8 година | |
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