hokaccha / nodebrew

Node.js version manager
MIT License
1.06k stars 66 forks source link

feat: add `prune` command to remove old versions #81

Closed gfx closed 2 years ago

gfx commented 2 years ago

The new prune command uninstalls old versions, keeping the latest version for each major release.

For example, given you have v10.0.0, v10.0.1, v12.0.0, and v12.0.1, nodebrew prune removes v10.0.0 and v12.0.0.