Dev.to
7/24/2026

Knip Keeps My JS/TS Dependencies Honest (I Wish Python Had It)
Short summary
Knip is a JS/TS tool that detects unused files, dependencies, and exports in a single pass by cross-referencing the actual import graph. It requires initial configuration to avoid false positives from dynamic imports and framework entry points, but becomes accurate after tuning. The author notes that equivalent all-in-one tooling is missing for Python, Go, and Rust.
- •Knip finds unused files, dependencies, and exports in one command by analyzing the TypeScript module graph
- •Expect false positives on day one; budget time to configure entry points in knip.json before trusting output
- •No equivalent three-in-one tool exists for Python, Go, or Rust despite partial alternatives like deptry and vulture
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



