rm-rf

Rimraf and glob all in one.

Usage no npm install needed!

<script type="module">
  import rmRf from 'https://cdn.skypack.dev/rm-rf';
</script>

README

rm-rf

Rimraf with glob, all in one

Install

$ npm install rm-rf

Usage

var rmrf = require('rm-rf');

rmrf('**/*.txt', function(error) {
  if(error) {
    console.log(error);
  } else {
    console.log('Files deleted');
  }
});