what about dependencies in different git branches? wouldn't it cause problems if knip deletes package from node modules in one brach, but package is used in another?
Try this with Vite. First, install Vite, which will install 10 packages. Then, run pnpm dlx knip. It will show Vite itself as an unused dependency. If you uninstall Vite and run pnpm dlx knip again, it won’t show all the other packages that were originally installed with Vite as unused dependencies. This doesn’t seem to work correctly. Am I misunderstanding something? The outcome is the same with even depcheck package, a Knip alternative.
I don't think it's pronounced 'nip', but 'k-nip', with the 'k' not silent, since the tool is developed by a Dutch person and 'knip' means 'cut' in Dutch.
My apologies to the creator! Hopefully won’t mind. Bit like how pronouncing Vite always confuses my brain, luckily they have the pronunciation in their docs haha
what about dependencies in different git branches? wouldn't it cause problems if knip deletes package from node modules in one brach, but package is used in another?
Very good tool , I didn't know this was a thing first of all but this is awesome and I'll use it in my projects . Thanks for sharing this with us
It's really nice, especially for exported fns
Wow!, thank you so much for covering such a usefull tool like this.
Try this with Vite. First, install Vite, which will install 10 packages. Then, run pnpm dlx knip. It will show Vite itself as an unused dependency. If you uninstall Vite and run pnpm dlx knip again, it won’t show all the other packages that were originally installed with Vite as unused dependencies. This doesn’t seem to work correctly.
Am I misunderstanding something? The outcome is the same with even depcheck package, a Knip alternative.
Great tool man!
Really cool indeed, reduces bundle size
Really cool
I don't think it's pronounced 'nip', but 'k-nip', with the 'k' not silent, since the tool is developed by a Dutch person and 'knip' means 'cut' in Dutch.
My apologies to the creator! Hopefully won’t mind.
Bit like how pronouncing Vite always confuses my brain, luckily they have the pronunciation in their docs haha
Bart is right, but I've accepted the inevitable English pronunciation a long time ago 😊
thanks man. really helpful stuff
VS Code What font do you use?
JetBrains mono!
来个中文翻译的🎉🎉🎉