Nihilist Postmodern Mistake
Wondering what’s next for npm?Check out our public roadmap! »

os-homedir

1.0.2 • Public • Published

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'

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

Install

npm i [email protected]

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar