node/deps/npm/node_modules/fstream-npm/node_modules/fstream-ignore
Kat Marchán c0d858f8bb
deps: upgrade npm beta to 5.0.0-beta.56
PR-URL: https://github.com/nodejs/node/pull/12936
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2017-05-23 19:39:43 +02:00
..
node_modules/minimatch deps: upgrade npm beta to 5.0.0-beta.56 2017-05-23 19:39:43 +02:00
ignore.js deps: upgrade npm to 3.3.10 2015-11-02 14:25:04 -05:00
LICENSE deps: upgrade npm to 3.3.10 2015-11-02 14:25:04 -05:00
package.json deps: upgrade npm beta to 5.0.0-beta.56 2017-05-23 19:39:43 +02:00
README.md deps: upgrade npm to 3.3.10 2015-11-02 14:25:04 -05:00

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.