passwd-darwin

1.0.0 • Public • Published

Passwd-darwin

A simple wrapper around the node.js module passwd that simply adds in support for OSX user account reading.

This module is read-only currently, and can be used on any system that supports passwd as it also calls passwd internally

Interface

The interface is modelled around that of passwd so that it can be used as a drop-in replacement, however it is read-only currently.

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

passwd.getAll(console.log) // => Prints all users on the system

passwd.get('username', console.log) // => Prints the record for the user of username 'username'

Simple filtering has been added to so that

passwd.getFilter({shell: '/bin/bash'}, console.log)// => Prints all users whose shell is bash on the system

LICENSE

ISC

Package Sidebar

Install

npm i passwd-darwin

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • jackatbancast