fstream-ignore

A thing for ignoring files based on globs

This package is no longer supported.
Last updated 11 years ago by zkat .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install fstream-ignore 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.5                                ...           latest (11 years ago)

16 Versions

  • 1.0.5 [deprecated]           ...           11 years ago
  • 1.0.4 [deprecated]           ...           11 years ago
  • 1.0.3 [deprecated]           ...           11 years ago
  • 1.0.2 [deprecated]           ...           12 years ago
  • 1.0.1 [deprecated]           ...           12 years ago
  • 1.0.0 [deprecated]           ...           12 years ago
  • 0.0.10 [deprecated]           ...           12 years ago
  • 0.0.9 [deprecated]           ...           12 years ago
  • 0.0.8 [deprecated]           ...           13 years ago
  • 0.0.7 [deprecated]           ...           13 years ago
  • 0.0.6 [deprecated]           ...           14 years ago
  • 0.0.5 [deprecated]           ...           15 years ago
  • 0.0.4 [deprecated]           ...           15 years ago
  • 0.0.3 [deprecated]           ...           15 years ago
  • 0.0.2 [deprecated]           ...           15 years ago
  • 0.0.1 [deprecated]           ...           15 years ago
Downloads
Total 34
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE