rabbithole-cli
v1.0.1
Published
How deep does your dependency tree go? — Dependency health check CLI for vulnerabilities, outdated, deprecated, and stale packages.
Maintainers
Readme
rabbithole
Wake up, Developer...
The Matrix has you...
Follow the white rabbit."You take the blue pill — you run
npm audit, the story ends, you wake up in your bed and believe whatever the terminal tells you. You take the red pill — you runrabbithole, you stay in Wonderland, and I show you how deep the dependency tree goes."— Morpheus, probably
What is this?
rabbithole is a dependency health check CLI. It shows you the truth about your project's dependencies — the vulnerabilities you didn't know about, the outdated packages you've been ignoring, the deprecated ones silently rotting, and the stale ones nobody maintains anymore.
npm audit is the blue pill. rabbithole is the red pill.
Install
npm install -g rabbithole-cliOr clone the source and unplug from the Matrix yourself:
git clone https://github.com/MiguelMedeiros/rabbithole.git
cd rabbithole
npm install
npm run build
npm linkUsage
rabbithole scan
"I know kung fu." — No. But now you know exactly what's wrong with your deps.
Scan your project for vulnerabilities, outdated, deprecated, and stale packages:
rabbithole scan rabbithole scan
Summary
● 3 vulnerabilities (1 critical, 2 high)
● 12 outdated packages
● 2 deprecated packages
● 4 stale packages (no update in 2+ years)
Vulnerabilities
┌──────────┬──────────────┬─────────────────────┬──────────────┐
│ Severity │ Package │ Title │ Fix Available│
├──────────┼──────────────┼─────────────────────┼──────────────┤
│ CRITICAL │ lodash │ Prototype Pollution │ 4.17.21 │
└──────────┴──────────────┴─────────────────────┴──────────────┘
Outdated Packages
┌──────────────┬─────────┬─────────┬──────┐
│ Package │ Current │ Latest │ Type │
├──────────────┼─────────┼─────────┼──────┤
│ express │ 4.18.0 │ 5.0.0 │ prod │
└──────────────┴─────────┴─────────┴──────┘rabbithole update
"There is no spoon." — And there are no safe outdated dependencies. Fix them.
Interactive mode (select which packages to update):
rabbithole updateUpdate specific packages:
rabbithole update lodash expressUpdate all outdated packages at once:
rabbithole update --allOptions
| Flag | Description | Default |
| ------------- | -------------------------------------- | ------- |
| --exact | Save exact versions (no caret/tilde) | true |
| --no-exact | Save with caret range (standard npm) | - |
| -a, --all | Update all outdated packages at once | false |
| -f, --force | Force install, ignoring peer conflicts | false |
How it works
"The Matrix is everywhere. It is all around us." — So are your dependencies.
Behind the curtain, rabbithole pulls data from multiple sources and combines them into a single, clean report:
| Agent | Mission | Source |
| ------------------- | ----------------------------------------- | ------------------------------------ |
| Vulnerabilities | Find known security threats | npm audit --json |
| Outdated | Detect packages behind latest version | npm outdated --json |
| Deprecated | Flag packages marked as deprecated | npm registry API |
| Stale | Catch packages with no update in 2+ years | npm registry API (last publish date) |
No noise. No walls of text. Just the truth.
The Lore
You know that feeling when you run npm audit and it spits out 847 lines of incomprehensible garbage? That's the Matrix. It's designed to keep you asleep, scrolling through meaningless walls of text, never really understanding what's wrong.
rabbithole is your red pill.
It follows the white rabbit down your node_modules, dives deep into the dependency tree, and comes back with a clean report. No junk. No "fix available via npm audit fix --force" that breaks everything. Just a clear view of what needs your attention.
"I didn't say it would be easy, Neo. I only said it would be the truth."
The Matrix Glossary
| Matrix Term | In rabbithole |
| -------------------- | -------------------------------------------------------- |
| The Matrix | Your node_modules — looks fine, but it's a lie |
| The Red Pill | Running rabbithole scan for the first time |
| Agents | Vulnerabilities lurking in your deps |
| Glitch in the Matrix | A deprecated package still in production |
| The Oracle | The scan report — it knows all |
| Zion | A project with zero issues. The promised land. |
| The Architect | You, after fixing everything |
| "There is no spoon" | "There are no safe outdated deps" |
| Déjà vu | That feeling when you see the same vuln in every project |
Contributing
"I can only show you the door. You're the one that has to walk through it."
PRs welcome. Open an issue, fork the repo, and follow the white rabbit.
License
MIT
Wake up...
Your dependencies need you.
(\(\
( -.-) Follow me.
o_(")(")
$ rabbithole scan