4 ms·
Love it. Saved 600MB... and test cases still passed :) I ported it to bash really quick, as thats probably easier for people to drop into their dotfiles if the
by gcommer 9y ago
Love it. Saved 600MB... and test cases still passed :)
I ported it to bash really quick, as thats probably easier for people to drop into their dotfiles if they don't have a Golang env setup.
https://gist.github.com/gpittarelli/64d1e9b7c1a4af762ec467b1c7571dc2 https://gist.github.com/gpittarelli/64d1e9b7c1a4af762ec467b1...
If we all just do our part and send a PR setting up .npmignore for one or two of these projects, maybe we won't need this anymore
- andreineculau 9y agoGreat one!
- tuananh 9y agoGreat. I wrapped your script into npm package https://www.npmjs.com/package/node-prune https://www.npmjs.com/package/node-prune
- arve0 9y agoAnd here is a project that helps you decide upfront if you should rely on that bloated module: https://www.npmjs.com/package/download-size https://www.npmjs.com/package/download-size The tool is available online too: https://arve0.github.io/npm-download-size/ https://arve0.github.io/npm-download-size/