getify/literalizer

Handle streaming lexing

オープン

#20 opened on 2013/09/07

 (4 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (2 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (18 個のスター)
PR merge metrics
 (30d に merged 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()?

コントリビューターガイド