tj/node-prune
View on GitHub ↗ ★ 4,417 Go
Remove unnecessary files from node_modules (.md, .ts, ...)
5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2017-11-19 · latest 2017-11-23
20082026
-
He went meta recently. Made node_modules cleaner in golang https://github.com/tj/node-prune :D
comment by dz0ny · 2017-11-23 · in Ditching Go for Node.js -
https://github.com/tj/node-prune/blob/20703f18e9a7996683f1b8... : // Copied from yarn (mostly). I infer that TJ used `yarn autoclean` as a starting point for this.
comment by chrismorgan · 2017-11-19 · in Show HN: Node.js node_modules file pruning -
https://github.com/tj/node-prune/blob/master/prune.go#L57 Doesn't this also result in .d.ts files being removed? These are type declaration files (Kinda like C's .h files) that provide types for you without the file size overhead of the…
comment by TheCoreh · 2017-11-19 · in Show HN: Node.js node_modules file pruning -
…Reading the code[1] it appears to delete directories and extensions based on a blacklist. 1. https://github.com/tj/node-prune/blob/master/prune.go#L15-L5...
comment by orf · 2017-11-19 · in Show HN: Node.js node_modules file pruning -
▲ 111
Show HN: Node.js node_modules file pruningstory by tjholowaychuk · 2017-11-19 · 61 comments