i’m trying to remove all .dot
files, except .git
and all *.js
except one exception.js
, but i’m failing
git clone [email protected]:iamstarkov/rimraf-test.git
cd rimraf-test
npm test # it fails
can anybody help me?
var globby = require('globby');
var rimraf = require('rimraf');
globby(['*', '!authors.js', '!.git', '!dump'])
.then(function then(paths) {
paths.map(function map(item) {
rimraf.sync(item);
});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With