Global shell command to delete files and folder usings globs.
$ npm install [--save|-g] ydel
$ ydel ./../shelljs !../shelljs/.git;
$ ls -a ./../shelljs/;
# => .. .git
"use strict";
var YDel = require("ydel");
var ydel = new YDel();
var Cli = new require("n-cli");
var cli = new Cli({
handleUncaughtException : false,
argv : ["./test", "--verbose"]
});
describe("ydel", function () {
it("should del!", function () {
ydel.del(cli);
});
});
MIT © s-a