awesome-cli-apps
awesome-cli-apps copied to clipboard
Add Autarky
New App Submission
- [x] I've read the contribution guidelines.
Repo or homepage link: Autarky -> https://github.com/pranshuchittora/autarky
Description:
Removes old node_modules
at ease.
Why you think it's awesome:
Featured In :point_down:
- https://nodeweekly.com/issues/315
- https://twitter.com/JavaScriptDaily/status/1198689493559234561
Can just be done in a simple script:
touch -t 2003011200 some_file
find ~ -name "node_modules" ! -newer some_file -exec sh -c 'echo removing $1; rm "$1"' sh {} ';'
Hi, @jneidel I completely agree. But generating timestamps is not that intuitive and this removes all such dirs but with Autarky
you can select only those you want to delete. And this works only with UNIX based system as windows don't support bash scripting out of the box.
From readme
the majority of the storage is occupied by node_modules
If this is your problem, you are fixing the symptom not the root cause. Migrating to pnpm (shared storage for dependencies) would be a better solution (in my eyes).
Found a few spelling mistakes:
Enter the time in months. Node modules older than the given time will be sowed.
*showed
In today's world storage is comparatively costlier than compute.
*computation.
And there probably are lots more.
generating timestamps is not that intuitive and this removes all such dirs
Just write a small wrapper script around it that takes easier to read date input and confirms deletion.
this works only with UNIX based system as windows
People on windows aren't using CLIs, otherwise they wouldn't be using windows.
Found a few spelling mistakes:
Enter the time in months. Node modules older than the given time will be sowed.
*showed
In today's world storage is comparatively costlier than compute.
*computation.
And there probably are lots more.
Will fix that. Thanks
From readme
the majority of the storage is occupied by node_modules
If this is your problem, you are fixing the symptom, not the root cause. Migrating to pnpm (shared storage for dependencies) would be a better solution (in my eyes).
True. But not all have migrated to pnpm
.
Just write a small wrapper script around it that takes easier to read date input and confirms deletion.
The idea is to solve this for others
People on windows aren't using CLIs, otherwise they wouldn't be using windows.
Can't comment on that :)