Emmanuil 73a9f0ffcf 20.07.2020 | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
LICENSE | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
get-uid-gid.js | %!s(int64=4) %!d(string=hai) anos | |
package.json | %!s(int64=4) %!d(string=hai) anos | |
uid-number.js | %!s(int64=4) %!d(string=hai) anos |
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.
})