Convert a username/group name to a uid/gid number

npm install uid-number
634 downloads in the last day
3 575 downloads in the last week
26 456 downloads in the last month

Use this module to convert a username/groupname to a uid/gid number.


npm install uid-number

Then, in your node program:

var uidNumber = require("uid-number")
uidNumber("isaacs", function (er, uid, gid) {
  // gid is null because we didn't ask for a group name
  // uid === 24561 because that's my number.
npm loves you