sindresorhus / user-info

Node.js `os.userInfo()` ponyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Node.js `os.userInfo()` ponyfill

License:MIT License


Languages

Language:JavaScript 100.0%