DEV Community

Cover image for Clean up repo with knip and two-line prompt
0xkoji
0xkoji

Posted on

Clean up repo with knip and two-line prompt

This will work with AI code editor and AI CLI.

install kip

https://knip.dev/

GitHub logo webpro-nl / knip

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

NPM Version NPM Downloads GitHub Repo stars

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.

Contributors

Special thanks to the wonderful people who have contributed to Knip!

Knip

/'knɪp/ means "(to) cut" and is pronounced with a hard "K" 🇳🇱

License

Knip is free and open-source software licensed under the ISC License.

Parts of Knip have been inspired by and/or partially copy code from the following projects:






bun add -D knip
pnpm add -D knip
npm install -D knip
Enter fullscreen mode Exit fullscreen mode

send the prompt

prompt

Clean up the unused code using knip. Please also verify that the build, test and lint processes still pass as expected.
Enter fullscreen mode Exit fullscreen mode

Top comments (0)