user-info

Node.js `os.userInfo()` ponyfill

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
user-info
3302.0.04 years ago7 years agoMinified + gzip package size for user-info in KB

Readme

Deprecated
This package is no longer relevant as Node.js 4 is unmaintained.
user-info Build Status
Node.js os.userInfo() ponyfill

Install

$ npm install --save user-info

Usage

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