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

貢獻者指南