ShenNong/packages/字体精简工具/node_modules/os-homedir
2024-06-21 18:44:06 +08:00
..
index.js 神农首次提交 2024-06-21 18:44:06 +08:00
license 神农首次提交 2024-06-21 18:44:06 +08:00
package.json 神农首次提交 2024-06-21 18:44:06 +08:00
readme.md 神农首次提交 2024-06-21 18:44:06 +08:00

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'
  • 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