fileEventEmitter
Processes a file's source. Adds created docObjects to docMap.
documentjs.process.file(source, docMap, [filename])
Processes files "matched" from a file event emitter into a docMap.
Parameters
-
fileEventEmitter
{fileEventEmitter}
An event emitter that dispatches events with files to process.
-
options
{Object}
An options object used to configure the behavior of documentjs.
Returns
{Promise<docMap>}
A docMap that contains the docObjects created from the matched files.