@ices/check-dependency-engines
A tool for analyzing dependencies.
About
Check engines requirements of the dependency, and find the version of the dependency that meets the minimum engine version requirements of the current project through metadata.
Install
Used as a cli util:
npm i @ices/check-dependency-engines -g
or run without install:
npx @ices/check-dependency-engines
By default, only the dependencies for production will be analyzing, you can use the -D arg to analyze dev dependencies.
Used as a dev util:
npm i @ices/check-dependency-engines -D
Usage
As a cli util:
> check-engines
Options:
- --help, -h Show help
- --version, -v Show version number
- --allow-pre-release, -p Allow match pre-release version
- --exact, -e Use exact version when update
- --disable-auto-install, -t Disable auto install after update
- --update, -u Auto update package.json file
- --cwd, -d Current Working Directory
- --registry, -r Registry url for npm repository
- --development, -D Only update the devDependencies
- --quiet, -q Disable the logs
As a package:
;(async () => {
const Checker = require('@ices/check-dependency-engines')
const ck = new Checker({
cwd: process.cwd(),
registry: 'https://registry.some.domain',
preRelease: false,
exact: true,
update: true,
log: 'log',
development: false,
})
const data = await ck.verify()
})()
Author
@ices/check-dependency-engines © Stone, Released under the MIT License.