Skip to content
JS
Package

package-name-regex

Provides a regex that can be used to test if a string is a valid NPM package name.

v5.0.0, 2 Jan 2026MITESM onlyTypes: BundledTesting
$ npm install package-name-regex

Key numbers

As of 25 Sept 2026
Weekly downloads
181.3k
+29% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
8 months ago
v5.0.0
GitHub stars
8
1 forks
Open issues / PRs
0 / 4
Contributors
-
Commits, last 52 weeks
8

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300k400kSept 2025Mar 2026Sept 2026High 372k (16 Jun 2026)Low 83.4k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

181,305 downloads last week, 857,720 in the last month. The 12-month change of +29% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.0.0, 2 Jan 20268 months ago
First published
-
Last push to GitHub
25 Sept 2026same day as the snapshot
Repository archived
No
Open issues
0
Open pull requests
4
Commits, last 52 weeks
8
Dependents on npm
26

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
6.7 kB
Dependencies (0)
None
npm install package-name-regex
  • jsDelivrhttps://cdn.jsdelivr.net/npm/package-name-regex@5.0.0/
  • unpkghttps://unpkg.com/package-name-regex@5.0.0/
  • esm.shhttps://esm.sh/package-name-regex@5.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.