✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
Last updated Jul 9, 2026
11.7k
Stars
440
Forks
9
Issues
+32
Stars/day
Attention Score
96
Topics
Language breakdown
TypeScript 84.2%
JavaScript 7.5%
Astro 3.8%
MDX 2.7%
CSS 0.6%
Lua 0.2%
▸ Files
click to expand
README
[![NPM Version][2]][1] [![NPM Downloads][3]][1] [![GitHub Repo stars][5]][4]
Knip finds and fixes unused dependencies, exports and files in your JavaScript and TypeScript projects. Less code and dependencies lead to improved performance, less maintenance and easier refactorings.
- Website: [knip.dev][6]
- GitHub repo: [webpro-nl/knip][4]
- Official npm packages: [knip][1], [@knip/create-config][7],
- [Knip on the VS Code Marketplace][10], [Knip on the Open VSX Registry][11]
- [Contributing Guide][12]
- Follow [@webpro.nl on Bluesky][13] for updates
- [Sponsor Knip!][14]
Contributors
Special thanks to [the wonderful people who have contributed to Knip][15]!
Knip
/'knɪp/ means "(to) cut" and is [pronounced with a hard "K"][16] 🇳🇱
License
Knip is free and open-source software licensed under the [ISC License][17].
Parts of Knip have been inspired by and/or partially copy code from the following projects:
- [@npmcli/package-json][18] ([ISC][19])
- [@pnpm/deps.graph-sequencer][20] ([MIT][21])
- [file-entry-cache][22] ([MIT][23])
- [json-parse-even-better-errors][24] ([MIT][25])
🔗 More in this category