Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@types/validate-npm-package-name
Advanced tools
TypeScript definitions for validate-npm-package-name
npm install --save @types/validate-npm-package-name
This package contains type definitions for validate-npm-package-name (https://github.com/npm/validate-npm-package-name).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validate-npm-package-name.
declare namespace validate {
interface Results {
validForNewPackages: boolean;
validForOldPackages: boolean;
errors?: string[] | undefined;
warnings?: string[] | undefined;
}
interface ValidNames extends Results {
validForNewPackages: true;
validForOldPackages: true;
}
interface InvalidNames extends Results {
validForNewPackages: false;
validForOldPackages: false;
errors: string[];
}
interface LegacyNames extends Results {
validForNewPackages: false;
validForOldPackages: true;
warnings: string[];
}
}
declare function validate(name: string): validate.ValidNames | validate.InvalidNames | validate.LegacyNames;
export = validate;
These definitions were written by Florian Keller, and Piotr Błażejewicz.
FAQs
TypeScript definitions for validate-npm-package-name
The npm package @types/validate-npm-package-name receives a total of 33,016 weekly downloads. As such, @types/validate-npm-package-name popularity was classified as popular.
We found that @types/validate-npm-package-name demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.