Logo white

BJ_web_developers / dyitoc

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • dyitoc
  • node_modules
  • os-homedir
  • readme.md
  • add
    aaac7fed
    liuqimichale authored
    2019-01-25 15:48:53 +0800  
    Browse Code »
readme.md 735 Bytes
Edit Raw Blame History Permalink

os-homedir Build Status

Node.js 4 <code>os.homedir()</code> 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