Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

read string using stream nodejs

const stream: InstanceType<typeof PassThrough> = new PassThrough()
stream.write(html)
stream.end()

stream.pipe(createWriteStream(writeFilePath)).on('finish', () => {
  console.info('generate file is working')
})
 
PREVIOUS NEXT
Tagged: #read #string #stream #nodejs
ADD COMMENT
Topic
Name
5+4 =