2.0.0 • Published 7 years ago
user-info v2.0.0
Deprecated
This package is no longer relevant as Node.js 4 is unmaintained.
user-info 
Node.js
os.userInfo()ponyfill
Install
$ npm install --save user-infoUsage
const userInfo = require('user-info');
console.log(userInfo());
/*
{
uid: 501,
gid: 20,
username: 'sindresorhus',
homedir: '/Users/sindresorhus',
shell: '/bin/zsh'
}
*/API
See the os.userInfo() docs.
The encoding option is not supported.
License
MIT © Sindre Sorhus