Displaying 1 to 11 from 11 results

trash - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to fs.unlink, del, and rimraf which permanently delete files, this only moves them to the trash, which is much safer and reversible.

del - Delete files and directories

  •    Javascript

Similar to rimraf, but with a Promise API and support for multiple files and globbing. It also protects you against deleting the current working directory and above.Support this project and improve your JavaScript skills with this great ES6 course by Wes Bos. Try his free JavaScript 30 course for a taste of what to expect. You might also like his React and Sublime course.

grunt-contrib-clean - Clear files and folders.

  •    Javascript

This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that you upgrade, but in case you can't please use v0.3.2. Run this task with the grunt clean command.

trash-cli - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to rm which is dangerous and permanently delete files, this only moves them to the trash, which is much safer and reversible. I would also recommend reading my guide on safeguarding rm.




fs-vacuum - Remove empty branches in a directory tree.

  •    Javascript

recursively remove empty directories -- to a point

rm-modules - Recursively remove *all* node_modules directories within the chosen root directory

  •    Javascript

Recursively remove all node_modules directories within the chosen root directory.Useful for cleaning a project which has more than one node_modules tree.

rimrafall - npm install could be dangerous

  •    Javascript

This is to show that npm install can be as dangerous as curl dangerous.com | sh. No, I did not name this package rimrafall, submited it to HN, clearly stated what it does and clearly told people not to install it with the purpose of having people delete stuff on their computers.


gulp-rimraf - rimraf plugin for gulp

  •    Javascript

Setting option read to false prevents gulp to read the contents of the files and makes this task much faster. Files and folders outside the current working directory can be removed with force option.