skills/bun-pm-cli-why/SKILL.md
Explain why a package is installed
npx skillsauth add jarle/bun-skills Bun bun whyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Explain why a package is installed
The bun why command explains why a package is installed in your project by showing the dependency chain that led to its installation.
bun why <package>
<package>: The name of the package to explain. Supports glob patterns like @org/* or *-lodash.--top: Show only the top-level dependencies instead of the complete dependency tree.--depth <number>: Maximum depth of the dependency tree to display.Check why a specific package is installed:
bun why react
[email protected]
└─ [email protected] (requires ^18.0.0)
Check why all packages with a specific pattern are installed:
bun why "@types/*"
@types/[email protected]
└─ dev [email protected] (requires ^18.0.0)
@types/[email protected]
└─ dev [email protected] (requires ^18.0.0)
Show only top-level dependencies:
bun why express --top
[email protected]
└─ [email protected] (requires ^4.18.2)
Limit the dependency tree depth:
bun why express --depth 2
[email protected]
└─ [email protected] (requires ^4.18.2)
└─ [email protected] (requires ^1.20.1)
└─ [email protected] (requires ^1.3.8)
└─ (deeper dependencies hidden)
The output shows:
For nested dependencies, the command shows the complete dependency tree by default, with indentation indicating the relationship hierarchy.
development
Using TypeScript with Bun, including type definitions and compiler options
development
Learn how to write tests using Bun's Jest-compatible API with support for async tests, timeouts, and various test modifiers
testing
Learn how to use snapshot testing in Bun to save and compare output between test runs
testing
Learn about Bun test's runtime integration, environment variables, timeouts, and error handling