Skip to content

Commit

Permalink
initial commits
Browse files Browse the repository at this point in the history
  • Loading branch information
AmagiDDmxh committed Apr 16, 2022
0 parents commit cc261d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/project-*
11 changes: 11 additions & 0 deletions readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Scripts

Curated scripts I wrote to help life better.



### Available scripts

supa-rm-modules.sh
- Recursively remove node_modules from current directory.
- Which is quite significantly fast than runing `find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +` which take hours or so when you have a large data set of node pkgs
3 changes: 3 additions & 0 deletions supa-rm-modules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
find . -name 'node_modules' -type d -prune | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' >./folders_to_remove
xargs rm -rf <./folders_to_remove
rm ./folders_to_remove

0 comments on commit cc261d9

Please sign in to comment.