You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rebecca Turner 08e0de59fa deps: upgrade npm to 3.3.10 9 years ago
..
example deps: upgrade npm to 3.3.10 9 years ago
node_modules/minimatch deps: upgrade npm to 3.3.10 9 years ago
test deps: upgrade npm to 3.3.10 9 years ago
.npmignore deps: upgrade npm to 3.3.10 9 years ago
LICENSE deps: upgrade npm to 3.3.10 9 years ago
README.md deps: upgrade npm to 3.3.10 9 years ago
ignore.js deps: upgrade npm to 3.3.10 9 years ago
package.json deps: upgrade npm to 3.3.10 9 years ago

README.md

fstream-ignore

A fstream DirReader that filters out files that match globs in .ignore files throughout the tree, like how git ignores files based on a .gitignore file.

Here's an example:

var Ignore = require("fstream-ignore")
Ignore({ path: __dirname
       , ignoreFiles: [".ignore", ".gitignore"]
       })
  .on("child", function (c) {
    console.error(c.path.substr(c.root.path.length + 1))
  })
  .pipe(tar.Pack())
  .pipe(fs.createWriteStream("foo.tar"))

This will tar up the files in __dirname into foo.tar, ignoring anything matched by the globs in any .iginore or .gitignore file.