surge-fstream-ignore
A thing for ignoring files based on globs
Last updated 5 years ago by sintaxi .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install surge-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.6                                ...           latest (5 years ago)

2 Versions

  • 1.0.6                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (3)

Copyright 2013 - present © cnpmjs.org | Home |