Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

parse-passwd

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

parse-passwd

Parse a passwd file into a list of users.

    1.0.0latest

Version published
Maintainers
1
Weekly downloads
7,031,872
decreased by-10.61%

Weekly downloads

Readme

Source

parse-passwd NPM version NPM downloads Linux Build Status Windows Build Status

Parse a passwd file into a list of users.

Install

Install with npm:

$ npm install --save parse-passwd

Usage

var parse = require('parse-passwd');

API

Example

// assuming '/etc/passwd' contains: // doowb:*:123:123:Brian Woodward:/Users/doowb:/bin/bash console.log(parse(fs.readFileSync('/etc/passwd', 'utf8'))); //=> [ //=> { //=> username: 'doowb', //=> password: '*', //=> uid: '123', //=> gid: '123', //=> gecos: 'Brian Woodward', //=> homedir: '/Users/doowb', //=> shell: '/bin/bash' //=> } //=> ]

Params

  • content {String}: Content of a passwd file to parse.
  • returns {Array}: Array of user objects parsed from the content.

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Please read the contributing guide for avice on opening issues, pull requests, and coding standards.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Brian Woodward

License

Copyright © 2016, Brian Woodward. Released under the MIT license.


This file was generated by verb-generate-readme, v0.2.0, on October 19, 2016.

Keywords

FAQs

What is parse-passwd?

Parse a passwd file into a list of users.

Is parse-passwd popular?

The npm package parse-passwd receives a total of 6,650,597 weekly downloads. As such, parse-passwd popularity was classified as popular.

Is parse-passwd well maintained?

We found that parse-passwd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 19 Oct 2016

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc