Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.63 KB

readme.md

File metadata and controls

64 lines (45 loc) · 1.63 KB

owners

Usernames and package counts for every npm package author

Works offline. Updated daily.

Installation

npm install owners --save

Usage

const owners = require('owners')

owners.length
// 106792

owners.slice(0, 10)
// [
//   { username: 'ehsalazar', packageCount: 1541 },
//   { username: 'retyped', packageCount: 1541 },
//   { username: 'joshhunt', packageCount: 1342 },
//   { username: 'jonschlinkert', packageCount: 1230 },
//   { username: 'sindresorhus', packageCount: 953 },
//   { username: 'okunishinishi', packageCount: 753 },
//   { username: 'kgryte', packageCount: 707 },
//   { username: 'substack', packageCount: 644 },
//   { username: 'ionicabizau', packageCount: 602 },
//   { username: 'dominictarr', packageCount: 568 }
// ]

owners.find(owner => owner.username === 'zeke').packageCount
// 180

Tests

npm install
npm test

Dependencies

None

Dev Dependencies

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • count-array-values: Count the instances of each value in an array
  • lodash: Lodash modular utilities.
  • mocha: simple, flexible, fun test framework
  • package-stream: An endless stream of clean package data from the npm registry.
  • standard: JavaScript Standard Style
  • standard-markdown: Test your Markdown files for Standard JavaScript Style™

License

MIT