node/deps/npm/node_modules/uid-number
isaacs 37ac5e52bf Update npm to 1.1.16 2012-04-06 14:42:19 -07:00
..
README.md Update npm to 1.1.16 2012-04-06 14:42:19 -07:00
get-uid-gid.js Update npm to 1.1.16 2012-04-06 14:42:19 -07:00
package.json Update npm to 1.1.16 2012-04-06 14:42:19 -07:00
uid-number.js Update npm to 1.1.16 2012-04-06 14:42:19 -07:00

README.md

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

Usage:

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.
})