tj / node-prune

Remove unnecessary files from node_modules (.md, .ts, ...)
MIT License
4.4k stars 130 forks source link

Equivalent bash script #12

Open themanifold opened 6 years ago

themanifold commented 6 years ago

You inspired me to write a quick bash script that I think does a similar thing to your script, only without showing space saved: https://gist.github.com/themanifold/2cd180c2ec4d49dd61f5da8e25481c42

thomasbrueggemann commented 6 years ago

Perfect, thanks! I was instantly looking for a non-Go alternative 👍

aterreno commented 6 years ago

node-prune is clearly a good idea, but a bash (or perl, or python) script is a much better idea, no need to install go!

phra commented 6 years ago

you can just use yarn autoclean without any other deps. DOCS

aterreno commented 6 years ago

@phra that's nice too, if you use yarn

phra commented 6 years ago

right now it's my preferred package manager and i usually use it. :smile:

gtramontina commented 6 years ago

Just a quick note: you don't necessarily have to have go installed; you can look for the executable binary version that is compatible with your OS here https://github.com/tj/node-prune/releases