{"maintainers":[{"name":"dev","email":"brian.woodward@gmail.com"}],"keywords":["home","homedir","homedirectory","os","os-homedir","polyfill","userhome"],"dist-tags":{"latest":"1.0.3"},"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"description":"Node.js os.homedir polyfill for older versions of node.js.","readme":"# homedir-polyfill [![NPM version](https://img.shields.io/npm/v/homedir-polyfill.svg?style=flat)](https://www.npmjs.com/package/homedir-polyfill) [![NPM monthly downloads](https://img.shields.io/npm/dm/homedir-polyfill.svg?style=flat)](https://npmjs.org/package/homedir-polyfill) [![NPM total downloads](https://img.shields.io/npm/dt/homedir-polyfill.svg?style=flat)](https://npmjs.org/package/homedir-polyfill) [![Linux Build Status](https://img.shields.io/travis/doowb/homedir-polyfill.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/homedir-polyfill) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/homedir-polyfill.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/homedir-polyfill)\n\n> Node.js os.homedir polyfill for older versions of node.js.\n\nPlease consider following this project's author, [Brian Woodward](https://github.com/doowb), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save homedir-polyfill\n```\n\n## Usage\n\n```js\nvar homedir = require('homedir-polyfill');\nconsole.log(homedir());\n//=> /Users/doowb\n```\n\n## Reasoning\n\nThis library is a polyfill for the [node.js os.homedir](https://nodejs.org/api/os.html#os_os_homedir) method found in modern versions of node.js.\n\nThis implementation tries to follow the implementation found in `libuv` by finding the current user using the `process.geteuid()` method and the `/etc/passwd` file. This should usually work in a linux environment, but will also fallback to looking at user specific environment variables to build the user's home directory if neccessary.\n\nSince `/etc/passwd` is not available on windows platforms, this implementation will use environment variables to find the home directory.\n\nIn modern versions of node.js, [os.homedir](https://nodejs.org/api/os.html#os_os_homedir) is used.\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n[parse-passwd](https://www.npmjs.com/package/parse-passwd): Parse a passwd file into a list of users. | [homepage](https://github.com/doowb/parse-passwd \"Parse a passwd file into a list of users.\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 19 | [doowb](https://github.com/doowb) |  \n| 2  | [martinheidegger](https://github.com/martinheidegger) |  \n\n### Author\n\n**Brian Woodward**\n\n* [GitHub Profile](https://github.com/doowb)\n* [Twitter Profile](https://twitter.com/doowb)\n* [LinkedIn Profile](https://linkedin.com/in/woodwardbrian)\n\n### License\n\nCopyright © 2016 - 2019, [Brian Woodward](https://github.com/doowb).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on February 21, 2019._\n","repository":{"type":"git","url":"git+https://github.com/doowb/homedir-polyfill.git"},"bugs":{"url":"https://github.com/doowb/homedir-polyfill/issues"},"license":"MIT","versions":{"1.0.0":{"name":"homedir-polyfill","description":"Node.js os.homedir polyfill for node versions 0.10 and before.","version":"1.0.0","homepage":"https://github.com/doowb/homedir-polyfill","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/homedir-polyfill.git"},"bugs":{"url":"https://github.com/doowb/homedir-polyfill/issues"},"license":"MIT","files":["index.js","LICENSE"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.1.2"},"keywords":["home","homedir","homedirectory","os","os-homedir","polyfill","userhome"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["parse-passwd"]},"reflinks":["verb","verb-generate-readme"]},"dependencies":{"parse-passwd":"^1.0.0"},"gitHead":"47a504df1ace0a66b8e0eea535f8f8c6fd38ff9c","_id":"homedir-polyfill@1.0.0","_shasum":"2f07f0dc32bd6f0384cd8c2a103824917fc6e321","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"dev","email":"brian.woodward@gmail.com"},"dist":{"shasum":"2f07f0dc32bd6f0384cd8c2a103824917fc6e321","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/homedir-polyfill/-/homedir-polyfill-1.0.0.tgz","integrity":"sha512-UkluU4FdyA2kOqnzv5ibpI7h9XofC/Lkcvz3U9GP/k+07aTlrxAiIiZfcVOli42S6AeQdpCZDNp+KEGEqbZyVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBg/sVx9MgV3muvUhH1nDbEC/5yFasQpr/3atYsyxE8tAiEAspIs5KWmRwMZl+OmjGDx/zULKA+9IzcQhHlXsBAGf5I="}]},"maintainers":[{"name":"dev","email":"brian.woodward@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/homedir-polyfill-1.0.0.tgz_1476899249450_0.5684890684206039"},"directories":{}},"1.0.1":{"name":"homedir-polyfill","description":"Node.js os.homedir polyfill for older versions of node.js.","version":"1.0.1","homepage":"https://github.com/doowb/homedir-polyfill","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/homedir-polyfill.git"},"bugs":{"url":"https://github.com/doowb/homedir-polyfill/issues"},"license":"MIT","files":["index.js","LICENSE"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.1.2"},"keywords":["home","homedir","homedirectory","os","os-homedir","polyfill","userhome"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["parse-passwd"]},"reflinks":["verb","verb-generate-readme"]},"dependencies":{"parse-passwd":"^1.0.0"},"gitHead":"e052b447041d10f4eb4140ab1569a9c8f5f78cd7","_id":"homedir-polyfill@1.0.1","_shasum":"4c2bbc8a758998feebf5ed68580f76d46768b4bc","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"dev","email":"brian.woodward@gmail.com"},"dist":{"shasum":"4c2bbc8a758998feebf5ed68580f76d46768b4bc","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz","integrity":"sha512-vyB97wSHuFP0FIQmu1H5RZCEUS0D11Dk9OFpXYo4D6HLFmIa5rbXh28ZGBWBe8LQjrw5fz8aoVRW09vP50XqCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEhG+tYiadhuFn+yPozzLH0S8VUdeDPOlCAhRs2iPDh8AiEAkdWwVws2ZuA8lNiLcTO18wBn2NVuhic/uunrCAh9rwE="}]},"maintainers":[{"name":"dev","email":"brian.woodward@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/homedir-polyfill-1.0.1.tgz_1480604864152_0.3404128428082913"},"directories":{}},"1.0.2":{"name":"homedir-polyfill","description":"Node.js os.homedir polyfill for older versions of node.js.","version":"1.0.2","homepage":"https://github.com/doowb/homedir-polyfill","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/homedir-polyfill.git"},"bugs":{"url":"https://github.com/doowb/homedir-polyfill/issues"},"license":"MIT","main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.1.2"},"keywords":["home","homedir","homedirectory","os","os-homedir","polyfill","userhome"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["parse-passwd"]},"reflinks":["verb","verb-generate-readme"]},"dependencies":{"parse-passwd":"^1.0.0"},"gitHead":"16c548b09395435aeda023e12ed7b47721c84a7f","_id":"homedir-polyfill@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"dev","email":"brian.woodward@gmail.com"},"dist":{"integrity":"sha512-A0cau1b1F7kmsKG3vHLi7DQ2d13k/BefUGRKRa8+sv7f1Vs+N28f0uv9nnWo3CNH50VsVdLcSKdxtztwn6K3Vg==","shasum":"0e59a09fcfcb387638f0832f5c27eb22da510fa7","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/homedir-polyfill/-/homedir-polyfill-1.0.2.tgz","fileCount":4,"unpackedSize":6221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbrSmCRA9TVsSAnZWagAADqoP/Anqwu6CQga5FVYiioUM\nSyBPkEs0pR5lVRKJdTcaIdXgPAYjTh9XZkUSIjXO2n95HqOD1Kz2e8Z/Oj1O\ne7tvTRv09iKWaroa/dCW+HI8ETYJnj/MetFB1Hpy75Zs62sf+frPWLubhZqs\nC11tqiYLQFFGt+SfuoIO4SXcZL9OkMcXEJMNcbUVoUJm9MOJkOoY5uUupn+m\n32oKa53rIQwNxafaKy+5hadFBxh0ZgObOkQfev05rRwV5kzD/cOzy6XcWZWD\ne+hCvVpV6hgPva/Oaf0GBjadS0lffqHzhTpWpAyzLbPKep4YoDd98r6x/5SB\nVmIMg41Z8X49cLse25gpBaJh8JvjIGBF/ZofiYaeRy99A2eALRO2IqilBYp8\nb90KMtjD5iWszNEgYIXdvslXaD+2fus1jIo35HBu1PKlstDMgVJDp2A2UWPz\nakjEEJCZDFvuu/bVHlAIukVlTviVpADktg/wFSvaZz2EULKVD1gEHDdUFmdn\nOQ6COB0UUQIkKjXQQKWfvXfdDBPMv0Vzir2b4Zxo5HvpNLoPCRUsfPWWoFav\nt3gQgE539FG9guV7+HNLFM2tFULMmMNCdFg9NYheLT8HZ3YUbZD2QhvrkYUG\nriC4eI4xlCytKgWW7kKWeSq/wR0YsVgwq0dFJeIDQq95na9YpOhgwOtg4cWs\ng6jE\r\n=gZWE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8CoIAFr2hkXLEb2uTsKFlklDibdN9s/2fqQ5Sq0WT1AiA+ORYiK7g/aDnb73KZfVDkyAyn/iV5jI9hc19SzFDbwQ=="}]},"maintainers":[{"name":"dev","email":"brian.woodward@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homedir-polyfill_1.0.2_1550759078180_0.05206984137417647"},"_hasShrinkwrap":false},"1.0.3":{"name":"homedir-polyfill","description":"Node.js os.homedir polyfill for older versions of node.js.","version":"1.0.3","homepage":"https://github.com/doowb/homedir-polyfill","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/homedir-polyfill.git"},"bugs":{"url":"https://github.com/doowb/homedir-polyfill/issues"},"license":"MIT","main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.1.2"},"keywords":["home","homedir","homedirectory","os","os-homedir","polyfill","userhome"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["parse-passwd"]},"reflinks":["verb","verb-generate-readme"]},"dependencies":{"parse-passwd":"^1.0.0"},"gitHead":"e7d6e97f4cd8db18cf695a121fc8dc2addaa754b","_id":"homedir-polyfill@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"dev","email":"brian.woodward@gmail.com"},"dist":{"integrity":"sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==","shasum":"743298cef4e5af3e194161fbadcc2151d3a058e8","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz","fileCount":5,"unpackedSize":8052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbvD/CRA9TVsSAnZWagAAtQcP/23BJAGoPF9uqmsiEBhi\nq5yTus7IKzPfKPxb9xPtOCplVmwrHfUUumwCXR7kKR36iJA0mRHsbNgMVZDd\n7hHlNg7gZb5Zext9mi51bnN1g/HLipx70iuWFlDXvv+P1GOIAklo1q9cuvFN\neKfRCl6MwJmr7plB4qhMbvvp6/sseimTebff4lMwloaWAxyN9BWMaP0Nai50\neQF4TsbjA2Bbh46uCKEyQFslTPBStw9GwIdIeOyvw2Wk99M90cn/22u1pMUu\njojkzimdd9UhM5BX750o1xi/F81ITgfFMwnuA68TsN1fH9QRGhoJF1OQRT7v\nBQwDrzI3rF2OcIO6a7mEQYw3CeItUNeVVQlaYI7lDczkdiD5FyYjzYX9R7ma\nteOgBAoyBeW0nceEZCcC3ighcljXbey1r6uj2TlJXfy4cRjARCgzz45Gh0jN\n1iYKm3j3gdO9jFFfFXfMQ14Wu05dT485XoABrbpsBojcICyZxHRJoHtq/J1J\niQv/6ePwIqUtqT4ko9yPBEbSSxczt2N52o5JVI/oEkOK9hr2xDujHsvhQZjV\no6fqejGf6OqlivoWRSapYQi0dQCN6f8P3S+ay3/gMGlRzcH1GCWeY6KsCjTk\nRuny1Sfp7rGsKE6/B7OhPEnW6pYGa/wGnwhX2AyiCTxeRxwJmo+/zZTvyMbF\nBvY1\r\n=KQin\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBEaXf3OHtSRwCARDWP/MAYxg/YGu0cst+5hB4OFg6fgIgXQZqKT63e05npi8aniDz7zPNlEk1LipLQv4e+5Agh1A="}]},"maintainers":[{"name":"dev","email":"brian.woodward@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homedir-polyfill_1.0.3_1550774527148_0.5844232516710839"},"_hasShrinkwrap":false}},"name":"homedir-polyfill","time":{"modified":"2022-06-18T21:22:28.443Z","created":"2016-10-19T17:47:31.386Z","1.0.0":"2016-10-19T17:47:31.386Z","1.0.1":"2016-12-01T15:07:46.123Z","1.0.2":"2019-02-21T14:24:38.336Z","1.0.3":"2019-02-21T18:42:07.345Z"},"readmeFilename":"README.md","homepage":"https://github.com/doowb/homedir-polyfill"}