pwd
<pwd.h> binding for node.
var fs = ;var pwd = ; var stat = fs; var passwd = pwd;console;
Installation
$ npm install pwd2 --save
Features
There is two available functions:
- getpwuid(uid)
var passwd = pwd;
- getpwnam(name)
var passwd = pwd;
These functions obtain information from opendirectoryd(8), including records in /etc/master.passwd which is described in master.passwd(5). Each entry in the database is defined by the structure passwd found in the include file <pwd.h>:
pw_name /* user name */ pw_passwd /* encrypted password - NOT SUPPORTED IN V1.0.0 */ pw_uid /* user uid */ pw_gid /* user gid */ pw_change /* password change time - NOT SUPPORTED IN V1.0.0 */ pw_class /* user access class - NOT SUPPORTED IN V1.0.0 */ pw_gecos /* Honeywell login info - NOT SUPPORTED IN V1.0.0 */ pw_dir /* home directory */ pw_shell /* default shell */ pw_expire /* account expiration - NOT SUPPORTED IN V1.0.0 */ pw_fields /* internal: fields filled in - NOT SUPPORTED IN V1.0.0 */
More Information
$ man 3 getpwuid
License
MIT