Miss any of our Open RFC calls?Watch the recordings here! »

This package has been deprecated

Author message:

This is not needed anymore. Use `require('os').homedir()` instead.

os-homedir

2.0.0 • Public • Published

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

Install

npm i os-homedir

DownloadsWeekly Downloads

11,234,700

Version

2.0.0

License

MIT

Unpacked Size

3.24 kB

Total Files

4

Last publish

Collaborators

  • avatar