code.knipknip unused code scan
Finds unused files, exports and dependencies in JS/TS projects with knip. Runs the project's JS/TS config files and plugin configs, which executes target code: enable only for trusted code. Skipped without package.json or node_modules.
- Engine
- Wrapped scanner
- Wraps
knip- Targets
- Codebase
- Areas
- Maintainability
- Runs
- Opt-in: only when selected with --only
- Network
- Only the target itself
Run only this auditor
bunx openaudit . --only code.knipWraps knip. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.