os-homedir

Node.js 4 `os.homedir()` ponyfill

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
os-homedir
6002.0.04 years ago8 years agoMinified + gzip package size for os-homedir in KB

Readme

Deprecated
This is not needed anymore. Use require('os').homedir() instead.
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