nice-registry/all-the-package-names
์๊ฐ
๐ค npm์ ๋ชจ๋ ๊ณต๊ฐ ํจํค์ง ์ด๋ฆ ๋ชฉ๋ก์ ๋๋ค. ๋งค์ผ ์ ๋ฐ์ดํธ๋ฉ๋๋ค.
ํ์ต ๋ฐ ๊ต์ก์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Originalall-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
trueif 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
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ