{"_id":"parse-passwd","_rev":"16159","name":"parse-passwd","description":"Parse a passwd file into a list of users.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"time":{"modified":"2021-06-03T09:58:59.000Z","created":"2016-10-19T17:43:46.626Z","1.0.0":"2016-10-19T17:43:46.626Z"},"users":{"zuojiang":true},"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/parse-passwd.git"},"versions":{"1.0.0":{"name":"parse-passwd","description":"Parse a passwd file into a list of users.","version":"1.0.0","homepage":"https://github.com/doowb/parse-passwd","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/parse-passwd.git"},"bugs":{"url":"https://github.com/doowb/parse-passwd/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":["etc","etc-passwd","etc/passwd","parse","parse-passwd","passwd"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":[]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"0c3c36bcb48d1af473f7f0665adb5b4c892cd506","_id":"parse-passwd@1.0.0","_shasum":"6d5b934a456993b23d37f40a382d6f1666a8e5c6","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"6d5b934a456993b23d37f40a382d6f1666a8e5c6","size":2671,"noattachment":false,"key":"/parse-passwd/-/parse-passwd-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-passwd/download/parse-passwd-1.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/parse-passwd-1.0.0.tgz_1476899025854_0.2723590866662562"},"directories":{},"publish_time":1476899026626,"_cnpm_publish_time":1476899026626,"_hasShrinkwrap":false}},"readme":"# parse-passwd [![NPM version](https://img.shields.io/npm/v/parse-passwd.svg?style=flat)](https://www.npmjs.com/package/parse-passwd) [![NPM downloads](https://img.shields.io/npm/dm/parse-passwd.svg?style=flat)](https://npmjs.org/package/parse-passwd) [![Linux Build Status](https://img.shields.io/travis/doowb/parse-passwd.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/parse-passwd) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/parse-passwd.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/parse-passwd)\n\n> Parse a passwd file into a list of users.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save parse-passwd\n```\n\n## Usage\n\n```js\nvar parse = require('parse-passwd');\n```\n\n## API\n\n**Example**\n\n```js\n// assuming '/etc/passwd' contains:\n// doowb:*:123:123:Brian Woodward:/Users/doowb:/bin/bash\nconsole.log(parse(fs.readFileSync('/etc/passwd', 'utf8')));\n\n//=> [\n//=>   {\n//=>     username: 'doowb',\n//=>     password: '*',\n//=>     uid: '123',\n//=>     gid: '123',\n//=>     gecos: 'Brian Woodward',\n//=>     homedir: '/Users/doowb',\n//=>     shell: '/bin/bash'\n//=>   }\n//=> ]\n```\n\n**Params**\n\n* `content` **{String}**: Content of a passwd file to parse.\n* `returns` **{Array}**: Array of user objects parsed from the content.\n\n## About\n\n### Contributing\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 avice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](http://twitter.com/doowb)\n\n### License\n\nCopyright © 2016, [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.2.0, on October 19, 2016._","_attachments":{},"homepage":"https://github.com/doowb/parse-passwd","bugs":{"url":"https://github.com/doowb/parse-passwd/issues"},"license":"MIT"}