username-userid

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i username-userid

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • mz3