getify/literalizer

Handle streaming lexing

开放

#20 创建于 2013年9月7日

 (4 条评论) (0 个反应) (1 位负责人)JavaScript (2 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (18 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南