node/deps/npm/node_modules/uid-number
isaacs bd547d6598 npm: upgrade to 1.4.6
* Documentation upgrades
* Fix glob bug which prevents proper README publishing
* node-gyp upgrade to 0.13
* Documentation updates
* Add --save-exact to save an exact dep (instead of a range)
* alias 't' to 'test'
2014-03-25 17:42:22 -07:00
..
get-uid-gid.js Upgrade npm to 1.1.14 2012-03-28 19:36:44 -07:00
LICENSE npm: upgrade to 1.4.6 2014-03-25 17:42:22 -07:00
package.json npm: upgrade to 1.4.6 2014-03-25 17:42:22 -07:00
README.md Upgrade npm to 1.1.14 2012-03-28 19:36:44 -07:00
uid-number.js npm: upgrade to 1.4.6 2014-03-25 17:42:22 -07:00

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