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

Function isReadableStream

lib/internal/streams/utils.js:80–88  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

78}
79
80function isReadableStream(obj) {
81 return !!(
82 obj &&
83 !isNodeStream(obj) &&
84 typeof obj.pipeThrough === 'function' &&
85 typeof obj.getReader === 'function' &&
86 typeof obj.cancel === 'function'
87 );
88}
89
90function isWritableStream(obj) {
91 return !!(

Callers 15

isWebStreamFunction · 0.70
pipelineImplFunction · 0.70
compose.jsFile · 0.70
duplexify.jsFile · 0.70
eosFunction · 0.70
styleTextFunction · 0.50
lockedMethod · 0.50
cancelMethod · 0.50
getReaderMethod · 0.50
pipeThroughMethod · 0.50

Calls 1

isNodeStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…