Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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 os-homedir

Downloadsweekly downloads

4,785,471

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar