This package has been deprecated

Author message:

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

os-homedir
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/os-homedir package

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    8,092,650
  • 1.0.1
    56,647
  • 1.0.0
    1,223
  • 0.1.0
    1

Package Sidebar

Install

npm i os-homedir

Weekly Downloads

6,870,516

Version

2.0.0

License

MIT

Unpacked Size

3.24 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus