Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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"`
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nodejs #create #stream
ADD COMMENT
Topic
Name
7+9 =