Answers for "how to create stream in node js"

6

nodejs create stream

const { Readable } = require("stream")

const readable = Readable.from(["input string"])

readable.on("data", (chunk) => {
  console.log(chunk) // will be called once with `"input string"`
})
Posted by: Guest on July-21-2020

Code answers related to "how to create stream in node js"

Browse Popular Code Answers by Language