Logo white

judicial-hy / 0.200103

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • 0.200103
  • node_modules
  • os-homedir
  • readme.md
  • 初始提交
    ce4c83ff
    wxy authored
    2020-01-09 10:05:05 +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