-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpasswd-user.node.txt
23 lines (19 loc) · 1.22 KB
/
passwd-user.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
┏━━━━━━━━━━━━━━━━━┓
┃ PASSWD-USER ┃
┗━━━━━━━━━━━━━━━━━┛
ALTERNATIVES ==> #Consider using OS.userInfo|homedir(), process.uid|gid(), USERNAME (see its doc),
#FULLNAME (see its doc) instead
VERSION ==> #4.0.0
passwdUser(['UID'])->PROMISE_OBJ #Return Unix user information:
passwdUserSync(['UID'])->OBJ # - on Linux, use /etc/passwd
# - on Mac, use `id -P`
# - on Windows, throws
#Return OBJ:
# - username STR
# - password STR
# - userIdentifier NUM, groupIdentifier NUM
# - fullname STR (can be "")
# - homeDirectory STR
# - shell STR
#Return undefined if user not found.
#Def UID: process.uid()