{"_id":"node-homedir","_rev":"9-43767b91af5a4dc5d3e05ab39be5643c","name":"node-homedir","description":"Get the effective user's homedir.","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.1":{"name":"node-homedir","version":"0.0.1","description":"Get the effective user's homedir.","main":"index.js","scripts":{"test":"npm run lint && mocha -t 15000 -r intelli-espower-loader test/*.test.js","test-cov":"istanbul cover _mocha -- -t 15000 -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":{"egg-ci":"~1.0.3","eslint":"3","eslint-config-egg":"3","intelli-espower-loader":"^1.0.1","istanbul":"*","mm":"^2.0.0","mocha":"*","power-assert":"^1.4.1"},"files":["index.js"],"engines":{"node":">=4.0.0"},"ci":{"version":"4, 6"},"gitHead":"7f112eeb2402ed3c561f9915f315fa2177cc0b0f","_id":"node-homedir@0.0.1","_shasum":"8ecae27633ba917fda0bc2c12a8a2ed7cca3dbd3","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"ngot","email":"zhuanghengfei@gmail.com"},"dist":{"shasum":"8ecae27633ba917fda0bc2c12a8a2ed7cca3dbd3","tarball":"https://registry.npmjs.org/node-homedir/-/node-homedir-0.0.1.tgz","integrity":"sha512-Jjvo++TDM/1zUpkapKBsoTK0weLpSab0YglarrIls79ZJ5z+6R2qwnIEfLmHUsFB53kikuGLppAfqLb/6jAASQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqfT8PhTVmQWO8w5eyrZKIl8y0rHzEHViX/Ucv/l7UXQIgbqcE++NG6xYZiXFg/p1hgErAnOVbIrb/dH28UC5BzYY="}]},"maintainers":[{"name":"ngot","email":"zhuanghengfei@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/node-homedir-0.0.1.tgz_1476330505056_0.5042987801134586"},"directories":{}},"1.0.0":{"name":"node-homedir","version":"1.0.0","description":"Get the effective user's homedir.","main":"index.js","scripts":{"test":"npm run lint && mocha -t 15000 -r intelli-espower-loader test/*.test.js","test-cov":"istanbul cover _mocha -- -t 15000 -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","istanbul":"*","mm":"^2.0.0","mocha":"*","power-assert":"^1.4.1"},"files":["index.js","README.md"],"engines":{"node":">=4.0.0"},"ci":{"version":"4, 6"},"gitHead":"d2f13e047e011e865507f22d00d02748bdc964e0","_id":"node-homedir@1.0.0","_shasum":"c636636e2d5047d0225eefb8db4b663e58594f49","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"ngot","email":"zhuanghengfei@gmail.com"},"dist":{"shasum":"c636636e2d5047d0225eefb8db4b663e58594f49","tarball":"https://registry.npmjs.org/node-homedir/-/node-homedir-1.0.0.tgz","integrity":"sha512-F0sVz5g/UlMC+J/mpv+bbFl9QusMK+uKxGL4ZWVP0pdyrsXTg0drEPU7+RKwpSg+vDGUNl+AYaBjk0iHJMRWSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICOAdq2/VY5onRSnvoAvlgv/IvzTGN4K9+hrVL9tFMExAiEA3tzwSztG4g0zTRnk9JXKDuecC5Xou94MRNG0PYLXPNA="}]},"maintainers":[{"name":"ngot","email":"zhuanghengfei@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-homedir-1.0.0.tgz_1478234977458_0.7161178383976221"},"directories":{}},"1.1.0":{"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":"https://registry.npmjs.org/node-homedir/-/node-homedir-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDI8ZLC4oYVBJ73u2bIxK7AJCFuL2bXzqNtOrawrDCkwAiEAh7yIiFybd9hgzno/L6bMZLE2EvjGi25QlN8VovzKTfg="}]},"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":{}},"1.1.1":{"name":"node-homedir","version":"1.1.1","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"],"engines":{"node":">=4.0.0"},"ci":{"version":"4, 6, 8, 10"},"gitHead":"73f13cb4357e3196ebc136864751704afe203d6c","_id":"node-homedir@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ngot","email":"zhuanghengfei@gmail.com"},"dist":{"integrity":"sha512-Xsmf94D/DdeDISAECUaxXVxhh+kHdbOQE4CnP4igo3HXL3BSmmUpD5M7orH434EZZwBTFF2xe5SgsQr/wOBuNw==","shasum":"736db0b60e3bba8aba68df9927de40a7aabe1075","tarball":"https://registry.npmjs.org/node-homedir/-/node-homedir-1.1.1.tgz","fileCount":5,"unpackedSize":4407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbQuTrCRA9TVsSAnZWagAAb3cP/imywGtsEh33vlmO+bGx\nz+A82Te5GxqMM7ULSY7HxP3AS9q3U+YP3+6o6hGnRfhO6Q/AfaHaSgfiNC5O\n6Y5Vxr8lnFXNolxjw3VjzaB7vbMboCRZps0M4PEByzl2b8AS0efZcBfVLnO9\nS7E2vu+iwpxSD5bNch89mBqKBj6t/mRgPEcpKAyQFxAmm1YD46tfszJm/tl5\nqZv+b3b2bH2y193hSaANF61jFoU60YV85+T27KUwk8qo6yC0zeNvGjzNHeWP\nRDZWfimPCr2l9CnG9zRYaQvirD3U8QTmKzy6feTLBGJFKMnf6Xxi2b/OT5kC\n4OQa/7Utakzh9jTG/m0WOorMJuW8PLZocLGveJ48/U77keVVNVZCieI5qIrW\nbimoLUKZexwQNLeNjEugJJGYQNvTh8C34QzEpAXVS4GxbNE9PDi3SU0l4hfx\nkSDoB1NPDI0Wk3WCZViGCT8t/c7ntDw9xD2AGA8B+bcxl6TaZ27RDZKQM/E8\nZyPVguYyYKisufd1kRVlJTKdW0i/ClpiL7RGNzoCtR6JI14Zq++PyJIksvPv\nnko52mMtywoRgY15kaQONJlGmVgEodhVsbItmi0hr0rl+Pd8Ke+pNbV5Ned9\ndIZn3LX9z0YzDUKqZTOit/oxxaLtIbC+PB4Gx/c/PMeqZRDAXFdlNzXSUOBg\nrbnP\r\n=Q1aC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOJ5+OMdib8rv4hHRqBTLQyZ3y2dRVEeuTzSF/qQlTEAiEAnSVi46hjpqjMZl/xff2kwN6VJl0Tx2iYRDrplBqQBtU="}]},"maintainers":[{"name":"ngot","email":"zhuanghengfei@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-homedir_1.1.1_1531110635589_0.37495091339922637"},"_hasShrinkwrap":false},"2.0.0":{"name":"node-homedir","version":"2.0.0","description":"Get the effective user's homedir.","scripts":{"test":"npm run lint -- --fix && egg-bin test","lint":"eslint src test --ext ts","ci":"npm run lint && egg-bin cov && npm run prepublishOnly","contributor":"git-contributor","prepublishOnly":"tshy && tshy-after"},"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":{"@eggjs/tsconfig":"^1.3.3","@types/mocha":"^10.0.2","@types/node":"^20.8.2","egg-bin":"^6.5.2","eslint":"^8.50.0","eslint-config-egg":"^13.0.0","git-contributor":"^2.1.5","mm":"^3.3.0","tshy":"^1.2.2","tshy-after":"^1.0.0","typescript":"^5.2.2"},"engines":{"node":">=16.0.0"},"ci":{"version":"16, 18, 20"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"type":"module","types":"./dist/commonjs/index.d.ts","_id":"node-homedir@2.0.0","gitHead":"fefa03df46626fa847d8909713fb329ebdfe9843","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-KNUpQjYKNEzMxGAvgmfOcnz+h2h0bOkYsQQbrgXWCYnB83z74OQMdaEJ6vI3iljVXTOn4sFtA5zrwcZaC8rVqg==","shasum":"3808aa416119a30a722503a287b36ddc02a365cf","tarball":"https://registry.npmjs.org/node-homedir/-/node-homedir-2.0.0.tgz","fileCount":10,"unpackedSize":8105,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/node-homedir@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkEXIshQCDoDhK86b2MLXgqtrhE60/SDy1Qo4F8KTgngIgCuMSAV1aWI+RHUMa4Mf+yNfp0hEfxFmPzVR6CCrKw5M="}]},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"ngot","email":"zhuanghengfei@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-homedir_2.0.0_1696521007045_0.036423233566792224"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"ngot","email":"zhuanghengfei@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2023-10-05T15:50:07.733Z","created":"2016-10-13T03:48:25.899Z","0.0.1":"2016-10-13T03:48:25.899Z","1.0.0":"2016-11-04T04:49:39.512Z","1.1.0":"2017-10-12T03:13:25.042Z","1.1.1":"2018-07-09T04:30:35.678Z","2.0.0":"2023-10-05T15:50:07.284Z"},"homepage":"https://github.com/node-modules/node-homedir#readme","keywords":["homedir","effective","node"],"repository":{"type":"git","url":"git+https://github.com/node-modules/node-homedir.git"},"author":{"name":"ngot"},"bugs":{"url":"https://github.com/node-modules/node-homedir/issues"},"license":"MIT","readmeFilename":"README.md"}