Delete all unused imports from your project's javascript files!
Simply
- download the repo
- open the
purge_party.rb
file - pass your javascript project's
/src
directory to the 'run' method - invoke the script (effectively calling
run
), throughruby purge_party.rb
Note
- as for now, requires ruby 3+ (but you can easily reverse engineer the file by substituting _1's & _2's with named arguments)