Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
K

knip

> 开发工具
Open source

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!

11.9K stars0 likes2 views
WebsiteGitHub

About

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!




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/language-server][8], [@knip/mcp][9] - [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]) [1]: https://www.npmx.dev/package/knip [2]: https://img.shields.io/npm/v/knip?color=f56e0f [3]: https://img.shields.io/npm/dm/knip?color=f56e0f [4]: https://github.com/webpro-nl/knip [5]: https://img.shields.io/github/stars/webpro-nl/knip?style=flat&color=f56e0f [6]: https://knip.dev [7]: https://www.npmx.dev/package/@knip/create-config [8]: https://www.npmx.dev/package/@knip/language-server [9]: https://www.npmx.dev/package/@knip/mcp [10]: https://marketplace.visualstudio.com/items?itemName=webpro.vscode-knip [11]: https://open-vsx.org/extension/webpro/vscode-knip [12]: https://github.com/webpro-nl/knip/blob/main/.github/CONTRIBUTING.md [13]: https://bsky.app/profile/webpro.nl [14]: https://knip.dev/sponsors [15]: https://knip.dev/#created-by-awesome-contributors [16]: https://www.youtube.com/watch?v=PE7h7KvQoUI&t=9s [17]: ./LICENSE [18]: https://github.com/npm/package-json [19]: https://github.com/npm/package-json/blob/main/LICENSE [20]: https://github.com/pnpm/pnpm/tree/main/deps/graph-sequencer [21]: https://github.com/pnpm/pnpm/blob/main/LICENSE [22]: https://github.com/jaredwray/cacheable/tree/main/packages/file-entry-cache [23]: https://github.com/jaredwray/cacheable/blob/main/packages/file-entry-cache/LICENSE [24]: https://github.com/npm/json-parse-even-better-errors [25]: https://github.com/npm/json-parse-even-better-errors/blob/main/LICENSE.md

Issues· 16 open

View all issuesOpen on GitHub
  • #1442

    Entries may have unused exports

    feature requestUpdated Sep 25, 2026
  • #2056

    Typescript moduleSuffixes support

    feature requestUpdated Sep 21, 2026
  • #1936

    SARIF increased fidelity

    feature requestUpdated Aug 31, 2026
  • #1961

    Plugin for zed

    feature requestUpdated Aug 20, 2026
  • #1924

    Suppressions using non js/tsdocs

    feature requestUpdated Aug 3, 2026
  • #1688

    Knip uses unsafe hashing algorithm for CodeClimate fingerprint

    discussionv7Updated Jul 26, 2026
  • #1876

    Fast-path literal (non-glob) patterns instead of passing them all to tinyglobby

    feature requestUpdated Jul 24, 2026
  • #1631

    Alternatives to classMembers?

    discussionUpdated Jul 18, 2026

> Tags

TypeScriptdeadcodedependency-analysisdependency-managementjavascript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具