os-homedir

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

This is not needed anymore. Use `require('os').homedir()` instead.
Last updated a year 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 (a year ago)

5 Versions

  • 2.0.0 [deprecated]           ...           a year ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 684
This Week 105,281
This Month 268,860
Last Day 18,853
Last Week 123,010
Last Month 506,242
Dependencies (0)
None
Dev Dependencies (3)
Dependents (304)

Copyright 2014 - 2016 © taobao.org |