buffer-to-stream
Convert buffer or string to readable stream.
Usage
const toStream = const readable = readablereadable
API
toStream(buffer[, chunkSize])
buffer
is the source buffer or string, and the type isString|Buffer
.chunkSize
specifies stream data push chunk size, and type isNumber
.
And the return value is a readable stream.