Sha256: 656d05475227c4341998dd1b5517efc036e6be3af45bb85b6e5f49cc9cabe77f
Contents?: true
Size: 621 Bytes
Versions: 87
Compression:
Stored size: 621 Bytes
Contents
# 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: ```javascript 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.
Version data entries
87 entries across 85 versions & 8 rubygems