mirror of https://github.com/jkjoy/sunpeiwen.git
5d2d87c740 | ||
---|---|---|
.. | ||
index.js | ||
license | ||
package.json | ||
readme.md |
readme.md
os-homedir
Node.js 4
os.homedir()
ponyfill
Install
$ npm install --save os-homedir
Usage
const osHomedir = require('os-homedir');
console.log(osHomedir());
//=> '/Users/sindresorhus'
Related
- user-home - Same as this module but caches the result
- home-or-tmp - Get the user home directory with fallback to the system temp directory
License
MIT © Sindre Sorhus