Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nicki

coderaiser889MIT6.1.1

Get names of users by uids from /etc/passwd

uid, name, passwd

readme

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

changelog

2021.03.02, v6.1.1

feature:

  • (package) putout v15.4.3
  • (package) supertape v5.0.0
  • (package) ischanged v4.0.0

2021.02.01, v6.1.0

feature:

  • (package) eslint v7.19.0
  • (package) eslint-plugin-putout v7.1.1
  • (package) putout v14.0.3
  • (nicki) spawnify -> child_process.exec

2021.01.20, v6.0.0

feature:

  • (package) supertape v4.8.0
  • (package) madrun v8.6.0
  • (package) eslint-plugin-putout v6.11.1
  • (package) putout v13.7.1
  • (package) spawnify v7.0.0
  • (nicki) drop support of node < 14

2020.03.02, v5.0.2

feature:

  • (package) ischanged v3.0.2

2020.02.29, v5.0.1

feature:

  • (package) ischanged v3.0.0
  • (package) eslint-plugin-putout v3.2.1
  • (package) putout v7.16.0
  • (package) eslint-plugin-node v11.0.0
  • (package) madrun v5.4.4
  • (package) nyc v15.0.0
  • (package) eslint v6.8.0

2019.10.17, v5.0.0

feature:

  • (nicki) promisify
  • (package) spawnify v6.0.0
  • (nicki) drop support of node < 10

2018.11.14, v4.0.0

feature:

  • (package) eslint v5.9.0
  • (package) nyc v13.1.0
  • (package) spawnify v5.0.0
  • (nicki) callback -> promise
  • (package) drop support of node < 8

2018.06.14, v3.0.1

feature:

  • (package) ischanged v2.0.0
  • (npmignore) add coverage
  • (package) eslint-plugin-node v6.0.0
  • (package) coveralls v3.0.0
  • (package) eslint v4.2.0
  • (package) nyc v11.0.3

2017.07.13, v3.0.0

feature:

  • (package) add eslint-plugin-node
  • (nicki) drop support of node version < 4
  • (gitignore) add package-lock.json
  • (package) spawnify v4.0.1

2016.11.16, v2.0.1

fix:

  • (readme) darwin -> nicki

2016.11.16, v2.0.0

feature:

  • (nicki) es2015-ify

2016.11.15, v1.2.12

feature:

  • (package) spawnify v3.0.0

2016.03.17, v1.2.11

feature:

  • (package) spawnify v2.3.0

2015.08.19, v1.2.10

feature:

  • feature(package) spawnify v2.1.0

2015.06.02, v1.2.9

feature:

  • (package) spawnify v2.0.0
  • (package) v1.2.8
  • (package) spawnify v1.10.1

2015.01.28, v1.2.8

feature:

  • (package) spawnify v1.10.1

2014.12.25, v1.2.7

feature:

  • (package) spawnify v1.8.3

2014.12.22, v1.2.6

feature:

  • (package) rm util-io

2014.11.25, v1.2.5

feature:

  • (package) spawnify v1.7.0

2014.11.25, v1.2.4

feature:

  • (package) spawnify v1.6.0

2014.11.20, v1.2.3

fix:

  • (darwin) end -> close

2014.11.19, v1.2.2

fix:

  • (darwin) spawify: add "end"

2014.11.5, v1.2.1

feature:

  • (package) spawnify v1.4.1

2014.11.3, v1.2.0

feature:

  • (package) util-io v1.6.0