getify/literalizer

Handle streaming lexing

Open

#20 aperta il 7 set 2013

Vedi su GitHub
 (4 commenti) (0 reazioni) (1 assegnatario)JavaScript (2 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (18 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

[edit: renamed to change the scope/intent of this bug per this comment: https://github.com/getify/literalizer/issues/20#issuecomment-23993775]

fs.readFile (and fs.readFileSync) provides a Buffer object. Passing this into literalizer.lex returns very unexpected data.

It would be great if it could read from the buffer directly, but if it requires string input, could you pass the input of "lex" through String()?

Guida contributor