tj/node-prune

Equivalent bash script

themanifold opened this issue ยท 6 comments

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

Perfect, thanks! I was instantly looking for a non-Go alternative ๐Ÿ‘

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

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

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

phra commented

right now it's my preferred package manager and i usually use it. ๐Ÿ˜„

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