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

/os-homedir/

    Package Sidebar

    Install

    npm i os-homedir

    Weekly Downloads

    8,271,853

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.24 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus