getify/literalizer

Handle streaming lexing

Open

#20 建立於 2013年9月7日

在 GitHub 查看
 (4 留言) (0 反應) (1 負責人)JavaScript (2 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (18 star)
PR 合併指標
 (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()?

貢獻者指南