Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Convert a username/group name to a uid/gid number
branch: master


latest commit aab48f5d6b
Isaac Z. Schlueter isaacs authored
Failed to load latest commit information.
LICENSE isc license readme update
get-uid-gid.js the rest
package.json 0.0.6
uid-number.js fix confusing variable names

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.
Something went wrong with that request. Please try again.