roster
v0.0.3
Published
Create or delete system user accounts in OS X, Linux and Windows.
Downloads
13
Maintainers
Readme
Roster
Create or delete system user accounts in Mac, Linux and Windows.
API
var roster = require('roster');
roster.exists('username', function(exists) {
console.log('User exists? ' + exists);
})
roster.create({ user: 'new_guy', name: 'The New Guy' }, function(err) {
if (!err)
console.log('Successfully created.')
})
roster.delete('bad_user', function(err) {
if (!err)
console.log('Successfully delete.')
})
That's it. For all options, check the examples.
Boring stuff
Written by Tomás Pollak. MIT licensed.