Node.js 4 `os.homedir()` ponyfill
$ gnpm install os-homedir
This is not needed anymore. Use require('os').homedir()
instead.
Node.js 4
os.homedir()
ponyfill
$ npm install --save os-homedir
const osHomedir = require('os-homedir');
console.log(osHomedir());
//=> '/Users/sindresorhus'
MIT © Sindre Sorhus
Copyright 2013 - present © cnpmjs.org | Home |