/ archiveofbelonging.org / back / node_modules / parse-passwd /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]LICENSE9 years ago1.1K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[TXT]README.md8 years ago2.4Kf12eb36 documentaiton updates [كارل مبارك]
[   ]index.js8 years ago1.4K 
[   ]package.json2 years ago1.8K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
README.md

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

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.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80