Skip to content

Dependency date checker and downgrade script generator

License

Notifications You must be signed in to change notification settings

secondfry/dependency-downgrader

Repository files navigation

dependency-downgrader

Zero dependency dependency date checker and downgrade script generator.

Usage

npm install dependency-downgrader

# Process direct dependencies
npx dependency-downgrader 2022-02-22 > result-direct.sh 2> log-direct.txt
sh result-direct.sh
npm audit

# Process all other dependencies too
PROCESS_FULL_GRAPH=1 npx dependency-downgrader 2022-02-22 > result-all.sh 2> log-all.txt
sh result-all.sh
npm audit

Feeling lucky?

npx -y dependency-downgrader 2022-02-22 | sh
PROCESS_FULL_GRAPH=1 npx -y dependency-downgrader 2022-02-22 | sh

Options

Environment variable Default Description
IGNORE_CACHE undefined Forces npm info call
MAX_BUFFER_FOR_EXEC 5 * 1024 * 1024 Sets custom buffer length for exec
PARALLEL_LIMIT 8 Sets parallel dependecy resolving limit
PROCESS_FULL_GRAPH undefined Adds full dependency graph analysis
USE_PARTIAL_VERSIONS undefined Allows rc, beta, etc. versions