homedir
Platform agnostic user home directory path resolution for Node.js.
Last updated 4 years ago by wilmoore .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install homedir 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.6.0                                ...           latest (4 years ago)

5 Versions

  • 0.6.0                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 1
This Week 33
This Month 207
Last Day 14
Last Week 77
Last Month 209
Dependencies (0)
None
Dev Dependencies (1)
Dependents (177)

Copyright 2014 - 2016 © taobao.org |