check-version-modules
Check modules's version for the package.
Installation
$ npm install check-version-modules
Features
- Extract package's dependencies & dev dependencies
- Extract there versions
- Compare them to the latest package's version
Doc
(file: string) => Promise\<void\>
extract & compare data
Examples
Command line
$ cd ./myProject/ && npx check-version-modules
Native
const checker = require("check-version-modules");
checker("./package.json").then((valid) => {
console.log(valid ? "ok": "old versions detected");
}).catch((err) => {
console.error(err);
});
Typescript
import checker = require("check-version-modules");
checker("./package.json").then((valid) => {
console.log(valid ? "ok": "old versions detected");
}).catch((err) => {
console.error(err);
});
Tests
$ npm run-script tests
License
ISC