shichen b6c5ecc67a init 10 mēneši atpakaļ
..
index.js b6c5ecc67a init 10 mēneši atpakaļ
license b6c5ecc67a init 10 mēneši atpakaļ
package.json b6c5ecc67a init 10 mēneši atpakaļ
readme.md b6c5ecc67a init 10 mēneši atpakaļ

readme.md

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