3 A fstream DirReader that filters out files that match globs in `.ignore`
4 files throughout the tree, like how git ignores files based on a
10 var Ignore = require("fstream-ignore")
11 Ignore({ path: __dirname
12 , ignoreFiles: [".ignore", ".gitignore"]
14 .on("child", function (c) {
15 console.error(c.path.substr(c.root.path.length + 1))
18 .pipe(fs.createWriteStream("foo.tar"))
21 This will tar up the files in __dirname into `foo.tar`, ignoring
22 anything matched by the globs in any .iginore or .gitignore file.