MCPcopy Index your code
hub / github.com/nodejs/node / read

Function read

test/parallel/test-stream-map.js:78–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 // Map works on non-objectMode streams
77 const stream = new Readable({
78 read() {
79 this.push(Uint8Array.from([1]));
80 this.push(Uint8Array.from([2]));
81 this.push(null);
82 }
83 }).map(async ([x]) => {
84 return x + x;
85 }).map((x) => x + x);

Calls 2

pushMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…