{"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":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"2f07f0dc32bd6f0384cd8c2a103824917fc6e321","tarball":"http://registry-npm.ywwl.com/homedir-polyfill/download/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="}],"size":2994,"noattachment":false,"key":"/homedir-polyfill/-/homedir-polyfill-1.0.0.tgz"},"maintainers":[{"name":"doowb","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":{},"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","publish_time":1476899251386,"_cnpm_publish_time":1476899251386,"dist-tags":{"latest":"1.0.3"}}