I'm trying to get some sort of output when the tokenizer has completed. end is never dispatched for me. In addition, I can listen for finish but because process.nextTick() force the final tokenization to occur on the next NodeJS frame, the finish is dispatched right before the last token is processed.
Is there a reason that _transform and _flush use process.nextTick()?
I'm trying to get some sort of output when the tokenizer has completed.
endis never dispatched for me. In addition, I can listen forfinishbut because process.nextTick() force the final tokenization to occur on the next NodeJS frame, thefinishis dispatched right before the last token is processed.Is there a reason that
_transformand_flushuseprocess.nextTick()?