fstream-ignore

A thing for ignoring files based on globs

ISC 16 个版本
安装
npm install fstream-ignore
yarn add fstream-ignore
pnpm add fstream-ignore
bun add fstream-ignore
README

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.

版本列表
1.0.5 2016-05-17
1.0.4 2016-05-02
1.0.3 2015-10-29
1.0.2 2014-12-03
1.0.1 2014-07-31
1.0.0 2014-07-31
0.0.10 2014-07-11
0.0.9 2014-07-11
0.0.8 2014-05-19
0.0.7 2013-05-29
0.0.6 2013-01-17
0.0.5 2012-03-27
0.0.4 2012-03-27
0.0.3 2012-03-27
0.0.2 2012-03-26
0.0.1 2012-03-22