Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Nodejs - non-flowing data stream

import { createReadStream, ReadStream } from 'fs';

var readStream: ReadStream = createReadStream('./data.txt');

setTimeout(() => {
  const data = readStream.read(10);
  console.log(data);
}, 10);
Source by gist.githubusercontent.com #
 
PREVIOUS NEXT
Tagged: #Nodejs #data #stream
ADD COMMENT
Topic
Name
1+3 =