stream-utils / raw-body

Get and validate the raw body of a readable stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

array of buffers vs string decoder

Raynos opened this issue · comments

See issue Raynos/body#2

If you want to consume the body as a string then using StringDecoder is better then an array of buffers.

what i was thinking about was adding an encoding option. this way, we can support any type of string but buffers by default.