{"name":"node-homedir","version":"1.1.0","description":"Get the effective user's homedir.","main":"index.js","scripts":{"test":"npm run lint && mocha -r intelli-espower-loader test/*.test.js","test-cov":"nyc mocha -r intelli-espower-loader test/*.test.js","lint":"eslint test *.js","ci":"npm run lint && npm run test-cov"},"repository":{"type":"git","url":"git+https://github.com/node-modules/node-homedir.git"},"keywords":["homedir","effective","node"],"author":{"name":"ngot"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/node-homedir/issues"},"homepage":"https://github.com/node-modules/node-homedir#readme","devDependencies":{"eslint":"3","eslint-config-egg":"3","intelli-espower-loader":"^1.0.1","mm":"^2.0.0","mocha":"*","nyc":"^11.2.1","power-assert":"^1.4.1"},"files":["index.js","README.md"],"engines":{"node":">=4.0.0"},"ci":{"version":"4, 6"},"gitHead":"56219014d2936a5fe60601ad76958e1a6fb271a4","_id":"node-homedir@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"ngot","email":"zhuanghengfei@gmail.com"},"dist":{"integrity":"sha512-jhUpcrKUV+vm4sRnoEgC5k2TcN6B53fIbMltom8BQcKOhSMm3j7W8bhbNwV64Cm139krwDWxep5KxifjnZCeTA==","shasum":"0ada30050df8923631b011f961395b382eb8c5cf","tarball":"http://registry-npm.ywwl.com/node-homedir/download/node-homedir-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDI8ZLC4oYVBJ73u2bIxK7AJCFuL2bXzqNtOrawrDCkwAiEAh7yIiFybd9hgzno/L6bMZLE2EvjGi25QlN8VovzKTfg="}],"size":2054,"noattachment":false,"key":"/node-homedir/-/node-homedir-1.1.0.tgz"},"maintainers":[{"name":"ngot","email":"zhuanghengfei@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-homedir-1.1.0.tgz_1507778004953_0.4556952582206577"},"directories":{},"readme":"# node-homedir\n\nGet the effective user's homedir, if Node.js >= v16.0.0 .\n\nAlways return the homedir of the current executor， even execute with `sudo -u [user] node app.js` without `-i`.\n\n[Reference Issue](https://github.com/nodejs/node/issues/5582)\n\n[![NPM version][npm-image]][npm-url]\n[![CI](https://github.com/node-modules/node-homedir/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/node-homedir/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/node-homedir.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/node-homedir\n[codecov-image]: https://codecov.io/github/node-modules/node-homedir/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/node-modules/node-homedir?branch=master\n[snyk-image]: https://snyk.io/test/npm/node-homedir/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/node-homedir\n[download-image]: https://img.shields.io/npm/dm/node-homedir.svg?style=flat-square\n[download-url]: https://npmjs.org/package/node-homedir\n\n## Installation\n\n```bash\nnpm install node-homedir\n```\n\n## Usage\n\nCommonjs\n\n```js\nconst { homedir } = require('node-homedir');\n\nconsole.log(homedir());\n```\n\nESM & TypeScript\n\n```ts\nimport { homedir } from 'node-homedir';\n\nconsole.log(homedir());\n```\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1507778005042,"_cnpm_publish_time":1507778005042,"dist-tags":{"latest":"2.0.0"}}