create account

Deleting Old Node Modules to Save Space Automatically by steem.racing

View this thread on: hive.blogpeakd.comecency.com
· @steem.racing · (edited)
$2.51
Deleting Old Node Modules to Save Space Automatically
<center>![wipemodules.png](https://files.steempeak.com/file/steempeak/steem.racing/r2ecez5i-wipe-modules.png)</center>
<br/>

I just found this lovely [tool](https://github.com/bntzio/wipe-modules) that will remove all the `node_modules` folders automatically.  This is very helpful as my computer currently has tons of `node_modules` folders and take up a lot of my storage.  You can get the source code [wipe-modules](https://github.com/bntzio/wipe-modules) and also can be installed through NPM:
    
    npm install --global wipe-modules 
<br/>

After you have it installed just run the `-h` help command to get a list of
options:
    
        $ wipe-modules --help 
<br/>

*Usage: wipe-modules [path] [days]*

*Path: The full path of your code directory* 

*Days: The days you want to set to mark projects as inactive* 

*Example: wipe-modules ~/code 90* 

*That will cleanup the node_modules of your ~/code projects whose been inactive for 90 days or more.*
<br/>

This video will demo how the tool works:
<center>[![asciicast](https://asciinema.org/a/119319.png)](https://asciinema.org/a/119319)</center>
<br/>

What a great tool and now I don't have to worry about spacing on my
computer.  Also, since all the dependencies should have been saved in my
package.json, all data should be not be losing too.
👍  , , , , , , , , , , , , , , , , , , ,
properties (23)
authorsteem.racing
permlinkdeleting-old-node-modules-to-save-space-automatically
categoryutopia-io
json_metadata{"tags":["utopian-io","blog","writing","education","utopia-io"],"image":["https://files.steempeak.com/file/steempeak/steem.racing/r2ecez5i-wipe-modules.png","https://asciinema.org/a/119319.png"],"links":["https://github.com/bntzio/wipe-modules","https://asciinema.org/a/119319"],"app":"steemit/0.1","format":"markdown"}
created2018-07-07 23:42:57
last_update2018-07-08 02:25:27
depth0
children0
last_payout2018-07-14 23:42:57
cashout_time1969-12-31 23:59:59
total_payout_value2.330 HBD
curator_payout_value0.175 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,311
author_reputation3,124,087,591,803
root_title"Deleting Old Node Modules to Save Space Automatically"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,834,604
net_rshares1,260,987,529,545
author_curate_reward""
vote details (20)