Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

secondfry/dependency-downgrader

Open more actions menu

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

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.