📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

user-info

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

user-info

Node.js `os.userInfo()` ponyfill

2.0.0
latest
Source
npm
Version published
Weekly downloads
8.7K
14.28%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

userInfo

FAQs

Package last updated on 08 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts