username-userid
v1.0.1
Published
Convert a linux username to a uid in your node.js program
Downloads
6
Readme
username-userid
Convert a linux username to a uid in your nodejs program.
Usage
var usernameToUid = require("username-userid");
// callback api
usernameToUid("michael", function(err, uid) {
console.log(uid);
});
// promise api
usernameToUid("michael").then(function(uid) {
console.log(uid);
}).catch(function(err) {
console.error(err);
})
## Run the tests
```bash
npm test