Gathering detailed insights and metrics for package-name-regex
Gathering detailed insights and metrics for package-name-regex
Gathering detailed insights and metrics for package-name-regex
Gathering detailed insights and metrics for package-name-regex
require-package-name
gets the package name for a require statement
scoped-regex
Regular expression for matching scoped npm package names
@types/package-name-regex
Stub TypeScript definitions entry for package-name-regex, which provides its own types definitions
parse-author
Parse an author, contributor, maintainer or other 'person' string into an object with name, email and url properties following npm conventions.
Provides a regex that can be used to test if a string is a valid NPM package name.
npm install package-name-regex
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.5
Supply Chain
93.5
Quality
76
Maintenance
100
Vulnerability
100
License
JavaScript (93.2%)
Shell (6.8%)
Total Downloads
7,810,120
Last Day
20,427
Last Week
133,093
Last Month
523,081
Last Year
3,869,174
NOASSERTION License
5 Stars
168 Commits
2 Watchers
5 Branches
5 Contributors
Updated on Apr 09, 2025
Minified
Minified + Gzipped
Latest Version
4.0.0
Package Id
package-name-regex@4.0.0
Unpacked Size
6.43 kB
Size
2.60 kB
File Count
5
NPM Version
10.5.0
Node Version
20.11.1
Published on
Mar 04, 2024
Cumulative downloads
Total Downloads
1
Provides a regex that can be used to test if a string is a valid NPM package name.
1# npm 2$ npm install package-name-regex 3 4# Yarn 5$ yarn add package-name-regex
1import packageNameRegex from 'package-name-regex' 2// Or import { packageNameRegex } from 'package-name-regex' 3 4packageNameRegex.test('some-package') // true 5packageNameRegex.test('example.com') // true 6packageNameRegex.test('@npm/thingy') // true 7 8packageNameRegex.test('crazy!') // false 9packageNameRegex.test('.start-with-period') // false 10packageNameRegex.test('@npm-zors/money!time.js') // false
Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️
Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:
If you want to send me a one time donation. The coffee is pretty good 😊.
Also for one time donations if you like PayPal.
Here you can support me regularly, which is great so I can steadily work on projects.
Thanks a lot for your support! ❤️
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 2/23 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-12
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-1.7%
20,427
Compared to previous day
Last Week
7.2%
133,093
Compared to previous week
Last Month
28%
523,081
Compared to previous month
Last Year
83.3%
3,869,174
Compared to previous year