{"id":15690238,"url":"https://github.com/doowb/parse-passwd","last_synced_at":"2025-05-06T21:06:49.672Z","repository":{"id":57319430,"uuid":"71384120","full_name":"doowb/parse-passwd","owner":"doowb","description":"Parse a passwd file into a list of users.","archived":false,"fork":false,"pushed_at":"2016-10-19T17:51:47.000Z","size":9,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T21:06:41.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-19T17:47:45.000Z","updated_at":"2025-05-02T22:18:10.000Z","dependencies_parsed_at":"2022-08-25T22:42:30.679Z","dependency_job_id":null,"html_url":"https://github.com/doowb/parse-passwd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fparse-passwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fparse-passwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fparse-passwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fparse-passwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/parse-passwd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769397,"owners_count":21801377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T18:08:23.001Z","updated_at":"2025-05-06T21:06:49.650Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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\u0026label=Travis)](https://travis-ci.org/doowb/parse-passwd) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/parse-passwd.svg?style=flat\u0026label=AppVeyor)](https://ci.appveyor.com/project/doowb/parse-passwd)\n\n\u003e 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//=\u003e [\n//=\u003e   {\n//=\u003e     username: 'doowb',\n//=\u003e     password: '*',\n//=\u003e     uid: '123',\n//=\u003e     gid: '123',\n//=\u003e     gecos: 'Brian Woodward',\n//=\u003e     homedir: '/Users/doowb',\n//=\u003e     shell: '/bin/bash'\n//=\u003e   }\n//=\u003e ]\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 \u0026\u0026 verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 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._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fparse-passwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fparse-passwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fparse-passwd/lists"}