getify/literalizer

Handle streaming lexing

Open

#20 geöffnet am 7. Sept. 2013

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (2 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (18 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

[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()?

Contributor Guide