![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
check-version-modules
Advanced tools
Readme
Check modules's version for the package.
$ npm install check-version-modules
does not support artifacts like "-beta" each "*" character will be understood like a "x"' here, "n" is a whatever number sample, like "1"
Does support following patterns:
(file: string, options?: iOptions) => Promise<boolean>
extract & compare datainterface iOptions {
"failAtMajor": boolean; // default: true => if no pattern, used for the returned boolean
"failAtMinor": boolean; // default: true => if no pattern, used for the returned boolean
"failAtPatch": boolean; // default: false => if no pattern, used for the returned boolean
"dev": boolean; // default: true => analyse dev deps too
"console": boolean; // default: true => print analyse's result in the terminal
}
--fail-at-major
=> failAtMajor = true--no-fail-at-major
=> failAtMajor = false--fail-at-minor
=> failAtMinor = true--no-fail-at-minor
=> failAtMinor = false--fail-at-patch
=> failAtPatch = true--no-fail-at-patch
=> failAtPatch = false--dev
=> dev = true--no-dev
=> dev = false--console
=> console = true--no-console
=> console = false--file
=> specify analysed file with next argument, if not set analyse the "package.json" in the working directory$ cd ./myProject/ && npx check-version-modules --file /etc/tests/package.json --fail-at-patch --no-dev
$ cd ./myProject/ && npx check-version-modules --no-console --no-fail-at-minor
const checker = require("check-version-modules");
checker("/etc/tests/package.json", {
"failAtPatch": true,
"dev": false
}).then((valid) => {
console.log(valid ? "ok": "old versions detected");
}).catch((err) => {
console.error(err);
});
import checker = require("check-version-modules");
checker("./package.json").then((valid) => {
console.log(valid ? "ok": "old versions detected");
}).catch((err) => {
console.error(err);
});
$ npm run-script tests
$ git clone git://github.com/Psychopoulet/check-version-modules.git
$ cd ./check-version-modules
$ npm install
$ npm run-script tests
FAQs
Check modules's version for the package.
We found that check-version-modules demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.