8000 GitHub - sindresorhus/user-info: Node.js `os.userInfo()` ponyfill
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

sindresorhus/user-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published
0