FileEventEmitter typedef

Node.js EventEmitter that emits an event with FileSource for every file found.

Object

Options

  • on {function(event, listener)}:

    Registers an event listener. File event emitters should dispatch:

    • "match" events that call listener with the matched path.
    • "end" events that call listener when there are no more matches.
  • cwd {String}:

    The root directory where "match" events are relative to.