This package has been deprecated

Author message:

This package is no longer relevant as Node.js 4 is unmaintained.

user-info

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i user-info

Weekly Downloads

7,164

Version

2.0.0

License

MIT

Unpacked Size

3.21 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus