Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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 17,042 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.