getify/literalizer

Handle streaming lexing

Aberta

#20 aberto em 7 de set. de 2013

 (4 comentários) (0 reação) (1 responsável)JavaScript (2 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (18 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador