-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cc261d9
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/project-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |