diff options
Diffstat (limited to 'deps/npm/node_modules/fstream-ignore/example/basic.js')
-rw-r--r-- | deps/npm/node_modules/fstream-ignore/example/basic.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/npm/node_modules/fstream-ignore/example/basic.js b/deps/npm/node_modules/fstream-ignore/example/basic.js new file mode 100644 index 0000000000..ff4534289c --- /dev/null +++ b/deps/npm/node_modules/fstream-ignore/example/basic.js @@ -0,0 +1,13 @@ +var Ignore = require("../") +Ignore({ path: __dirname + , ignoreFiles: [".ignore", ".gitignore"] + }) + .on("child", function (c) { + console.error(c.path.substr(c.root.path.length + 1)) + c.on("ignoreFile", onIgnoreFile) + }) + .on("ignoreFile", onIgnoreFile) + +function onIgnoreFile (e) { + console.error("adding ignore file", e.path) +} |