"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/fstream-ignore/README.md" (17 Oct 2016, 621 Bytes) of archive /windows/misc/atom-windows.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.


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.