A list of all the public package names on npm.
- Includes scoped packages
- Sorted by dependent count
- Uses npm's replicate.npmjs.com service.
- Updated daily
npm install all-the-package-names --save
The module exports a big flat array of package names:
const names =// Most-depended-on names are first. See what's popular!names// [// 'mocha',// 'chai',// 'lodash',// 'grunt',// 'eslint'// ]names// => true// Check if a given package name existsnames// => falsenameslength// => 286289names// => [ 'banana', 'banana-banana', 'banana-split', ...]// Note: This example requires node 4 or greater because it uses// const, arrow functions, and the `includes` array/string helper.
You can also use it on the command line. Newline-delimited names are piped to STDOUT:
npm i -g all-the-package-namesall-the-package-names | grep spell
Note that while mixed-case package names are no longer allowed to be published to the npm registry, there are over 2800 legacy mixed-case packages, many of which have the same spelling as other existing lowercase packages. See nice-registry/mixed-case-package-names for the the full list.
To avoid the mixed-case names when working with this data, just filter them out:
const names =
npm installnpm test
- dependent-counts: Get counts of how many packages depend on the given package. Works offline.
- lodash: The modern build of lodash modular utilities.
- ora: Elegant terminal spinner
- package-stream: An endless stream of clean package data from the npm registry.
- tap-spec: Formatted TAP output like Mocha's spec reporter
- tape: tap-producing test harness for node and browsers