Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master


latest commit 20363d3966
isaacs isaacs authored
Failed to load latest commit information.
example move example to example folder
test Add test regarding read file order
.gitignore test fixtures and npm test command
LICENSE isc license
ignore.js Always read ignore files one after another
package.json v1.0.2


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))

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

Something went wrong with that request. Please try again.