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

Method createReadStream

lib/internal/fs/promises.js:406–409  ·  view source on GitHub ↗

* @typedef {import('./streams').ReadStream * } ReadStream * @param {{ * encoding?: string; * autoClose?: boolean; * emitClose?: boolean; * start: number; * end?: number; * highWaterMark?: number; * }} [options] * @returns {ReadStream}

(options = undefined)

Source from the content-addressed store, hash-verified

404 * @returns {ReadStream}
405 */
406 createReadStream(options = undefined) {
407 const { ReadStream } = lazyFsStreams();
408 return new ReadStream(undefined, { ...options, fd: this });
409 }
410
411 /**
412 * @typedef {import('./streams').WriteStream

Callers 15

readLinesMethod · 0.95
getTscFromReadmeFunction · 0.45
moveVotingToRegularFunction · 0.45
getVersionsFromFileFunction · 0.45
createReadStreamFunction · 0.45
runFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runTestFunction · 0.45
runClassicFunction · 0.45

Calls 1

lazyFsStreamsFunction · 0.85

Tested by

no test coverage detected