0.1.0 • Published 10 years ago

unix-user v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

Unix User Utilities

$ npm install unix-user

A small set of utilities for managing users in unix systems.

Example:

var user = require('unix-user');

user.exists('nick', function(exists) {
	if (!exists) {
		user.create('nick', 'pass', function(err) {
			if (err) {
				return console.log('Error creating user');
			}
			console.log('User created');
		});
	} else {
		user.passwd('nick', 'pass', function(err) {
			if (err) {
				return console.log('Error setting user password');
			}
			console.log('User password updated');
		});
	}
});
0.1.0

10 years ago

0.0.1

10 years ago