validate-npm-package-name
npmv8.0.0Give me a string and I'll tell you if it's a valid npm package name
Overview
validate-npm-package-name is an npm package that give me a string and I'll tell you if it's a valid npm package name. It is extremely widely used, with about 39.6M downloads per week and 1 known dependents in the graph. The latest version is 8.0.0, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need give me a string and I'll tell you if it's a valid npm package name and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (39.6M weekly downloads).
- Clear open-source license (ISC).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of validate-npm-package-name.
Dependencies
Dev (2)
Used by
Popular packages that depend on validate-npm-package-name.
Alternatives to validate-npm-package-name
Find the root directory of a Node.js project or npm package
Find a file or directory by walking up parent directories
A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
Does this JS environment support the `name` property on functions?
Object schema validation
Email address and domain validation
A library for parsing IPv4 and IPv6 IP addresses in node and the browser.
Resolve the workspace root using bun, npm, pnpm, or yarn
Is this specifier a node.js core module?
Get information on local packages.
The modular and type safe schema library for validating structural data
A family of specs for interoperable TypeScript
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 8.0.0latest | 2 months ago | ISC |
| 7.0.2 | 6 months ago | ISC |
| 7.0.1 | 7 months ago | ISC |
| 7.0.0 | 9 months ago | ISC |
| 6.0.2 | 1 year ago | ISC |
| 6.0.1 | 1 year ago | ISC |
| 6.0.0 | 1 year ago | ISC |
| 5.0.1 | 2 years ago | ISC |
| 5.0.0 | 3 years ago | ISC |
| 4.0.0 | 4 years ago | ISC |
| 3.0.0 | 9 years ago | ISC |
| 2.2.2 | 11 years ago | ISC |
| 2.2.1 | 11 years ago | ISC |
| 2.2.0 | 11 years ago | ISC |
| 2.1.0 | 11 years ago | ISC |
| 2.0.1 | 11 years ago | ISC |
| 2.0.0 | 11 years ago | ISC |
| 1.2.0 | 11 years ago | ISC |
| 1.1.1 | 11 years ago | ISC |
| 1.1.0 | 11 years ago | ISC |
Maintainers
Keywords
Frequently asked questions
How do I install validate-npm-package-name?
Run `npm install validate-npm-package-name` to add validate-npm-package-name to your npm project.
What license is validate-npm-package-name released under?
validate-npm-package-name is distributed under the ISC license.
How popular is validate-npm-package-name?
validate-npm-package-name has approximately 39,573,838 downloads per week and 1 known dependent packages.