Skip to content

Instantly share code, notes, and snippets.

View ds300's full-sized avatar
🏳️‍🌈

David Sheldrick ds300

🏳️‍🌈
View GitHub Profile
@ds300
ds300 / clean.sh
Last active May 12, 2019 09:29 — forked from zephraph/clean_node_modules.sh
Clean up node_modules
#!/bin/bash
DAYS_SINCE_LAST_CHANGE=14
TOTAL_BYTES_REMOVED=0
Mb=1000000
Kb=1000
node_modules=$(find . -name "node_modules" -type d -prune)