• Stars
    star
    242
  • Rank 167,048 (Top 4 %)
  • Language
    JavaScript
  • Created over 9 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔤 A list of all the public package names on npm. Updated daily.

all-the-package-names

Maintained by jsDelivr. Please consider becoming a sponsor to support us.

A list of all the public package names on npm.

  • Includes scoped packages
  • Updated daily

Installation

npm install all-the-package-names --save

Usage

The module exports a big flat array of package names:

const names = require("all-the-package-names")

names.includes('superagent')
// => true

// Check if a given package name exists
names.includes('crazy-new-package-name')
// => false

names.length
// => 286289

names.filter(name => name.includes('banana'))
// => [ '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.

CLI Usage

You can also use it on the command line. Newline-delimited names are piped to STDOUT:

npm i -g all-the-package-names
all-the-package-names | grep spell

⚠️ Gotchas

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 = require('all-the-package-names')
  .filter(name => name === name.toLowerCase())

Tests

npm install
npm test

Dependencies

None

Dev Dependencies

  • all-the-package-repos: Normalized repository URLs for every package in the npm registry.
  • is-number: JavaScript/Node.js utility. Returns true if the value is a number or string number. Useful for checking regex match results, user input, parsed strings, etc.
  • tap-spec: Formatted TAP output like Mocha's spec reporter
  • tape: tap-producing test harness for node and browsers

License

MIT

More Repositories

1

all-the-package-repos

🌍 Normalized repository URLs for every package in the npm registry. Updated daily.
JavaScript
78
star
2

ghub.io

🤸‍♀️ Redirect to an npm package's repository page
JavaScript
68
star
3

dependent-packages

🔗 Direct dependents and devDependents of every package in the npm registry. Works offline.
32
star
4

nice-package

📦 Clean up messy package metadata from the npm registry
JavaScript
29
star
5

nice-registry

🎁 A proxy to the npm registry that serves up nice package metadata.
JavaScript
28
star
6

all-the-packages

📦 All the npm registry metadata as an offline event stream. [DEPRECATED]
JavaScript
23
star
7

package-stream

🚰 An endless stream of clean package data from the npm registry.
JavaScript
23
star
8

npm-cdn

⬇️ [DEPRECATED] A webservice that dishes out files from npm packages
JavaScript
22
star
9

owner-profiles

✉️ Names, emails, GitHub handles, and more for every npm package author
JavaScript
18
star
10

native-modules

JavaScript modules with C++ addons
JavaScript
15
star
11

download-counts

💯 Average daily download counts for every npm package. Works offline.
JavaScript
13
star
12

http-modules

a list of javascript modules for doing http stuff
JavaScript
11
star
13

welcome

💡 Info about the nice-registry project
11
star
14

fetch-nice-package

fetch cleaned package metadata from the npm registry.
JavaScript
7
star
15

dependent-counts

💯 Get counts of how many packages depend on the given package. Works offline.
JavaScript
6
star
16

mixed-case-package-names

⚠️ A cautionary study of typosquatting on the npm registry.
JavaScript
6
star
17

cli-packages

🐚 Names of all npm packages that have a command-line interface. Sorted by download count, descending.
JavaScript
6
star
18

owners

💁 Usernames and package counts for every npm package author. Works offline. Updated daily.
JavaScript
5
star
19

get-email-address-from-npm-username

Get the email address for a specific npm user
JavaScript
5
star
20

depnames

Fetch a list of dependency names for a given npm package
JavaScript
4
star
21

npm-tarball-globber

JavaScript
4
star
22

get-auth-token-from-npmrc

Convenience module and CLI for extracting the auth token from your ~/.npmrc file
JavaScript
4
star
23

npm-buildpack

☁️ Heroku Buildpack for npm Authentication
Shell
4
star
24

nock-modules

a list of javascript modules that extend or depend on nock
JavaScript
3
star
25

npm-api-client

💭 A self-generating client for npm's new (nonexistent) registry API (Experimental)
JavaScript
3
star
26

npm-usernames-by-email

look up npm usernames by email address
JavaScript
2
star
27

sourceranks

libraries.io SourceRank data for every package in the npm registry
JavaScript
2
star
28

sourcerank-data

JavaScript
1
star
29

npm-license-stats

licenses most frequently used by public npm packages
JavaScript
1
star