os: add userInfo() method
Checklist
-
tests and code linting passes -
a test and/or benchmark is included -
documentation is changed or added -
the commit message follows commit guidelines
Affected core subsystem(s)
os
Description of change
os.getpw()
calls libuv's uv_os_get_passwd()
function. It returns an object containing the current effective user's username
, uid
, gid
, shell
, and homedir
. On Windows, the uid
and gid
are -1
, and the shell
is null
.