mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 12:20:50 +01:00
* Check SHA before using files from cache * adduser: allow change of the saved password * Make `npm install` respect `config.unicode` * Fix lifecycle to pass `Infinity` for config env value * Don't return 0 exit code on invalid command * cache: Handle 404s and other HTTP errors as errors * bump tap dep, make tests stderr a bit quieter * Resolve ~ in path configs to env.HOME * Include npm version in default user-agent conf * npm init: Use ISC as default license, use save-prefix for deps * Many test and doc fixes |
||
|---|---|---|
| .. | ||
| get-uid-gid.js | ||
| LICENCE | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| uid-number.js | ||
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.
})