os-homedir

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

This is not needed anymore. Use `require('os').homedir()` instead.
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install os-homedir 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (2 years ago)

5 Versions

  • 2.0.0 [deprecated]           ...           2 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 20,126
This Week 106,052
This Month 106,052
Last Day 28,773
Last Week 159,256
Last Month 635,277
Dependencies (0)
None
Dev Dependencies (3)
Dependents (333)

Copyright 2014 - 2016 © taobao.org |