Skip to content

Convert a linux username to a uid in your node.js program

Notifications You must be signed in to change notification settings

mz3/username-userid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert a linux username to a uid in your node.js program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published