wallet-core/node_modules/os-homedir
2016-11-03 01:33:53 +01:00
..
index.js add node_modules to address #4364 2016-10-10 03:43:44 +02:00
license add node_modules to address #4364 2016-10-10 03:43:44 +02:00
package.json node_modules 2016-11-03 01:33:53 +01:00
readme.md add node_modules to address #4364 2016-10-10 03:43:44 +02:00

os-homedir Build Status

Node.js 4 os.homedir() ponyfill

Install

$ npm install --save os-homedir

Usage

const osHomedir = require('os-homedir');

console.log(osHomedir());
//=> '/Users/sindresorhus'
  • 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