6.1.1 • Published 4 years ago

nicki v6.1.1

Weekly downloads
608
License
MIT
Repository
github
Last release
4 years ago

Nicki License NPM version Dependency Status Build Status

Get names of users by uids from /etc/passwd (or from dscl on darwin).

Install

npm i nicki --save

Hot to use?

const nicki = require('nicki');
const names = await nicki();

/*
 * Could be something like this
{
  '0': 'root',
  '1': 'daemon',
  '2': 'bin',
  '3': 'sys',
  '4': 'sync',
  '5': 'games',
  '6': 'man',
  '7': 'lp',
  '8': 'mail',
  '9': 'news',
  '10': 'uucp',
  '13': 'proxy',
  '33': 'www-data',
  '34': 'backup',
  '38': 'list',
  '39': 'irc',
  '41': 'gnats',
  '100': 'libuuid',
  '101': 'syslog',
  '102': 'messagebus',
  '103': 'landscape',
  '104': 'sshd',
  '105': 'colord',
  '106': 'debian-deluged',
}
*/

How it works?

Nicki parses /etc/passwd and makes object where key is uid and value is name.

License

MIT

6.1.1

4 years ago

6.1.0

4 years ago

6.0.0

4 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

6 years ago

4.0.0

7 years ago

3.0.1

7 years ago

3.0.0

8 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.2.12

9 years ago

1.2.11

9 years ago

1.2.10

10 years ago

1.2.9

10 years ago

1.2.8

10 years ago

1.2.7

11 years ago

1.2.6

11 years ago

1.2.5

11 years ago

1.2.4

11 years ago

1.2.3

11 years ago

1.2.2

11 years ago

1.2.1

11 years ago

1.2.0

11 years ago

1.1.2

11 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago