-
将用户名和组名称转换为对应的uid和gid数字
资源介绍
使用此模块将用户名/组名转换为uid / gid编号。
用法:
npm install uid-number
然后,在您的节点程序中:
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.
} )