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

Function isTransformStream

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

Source from the content-addressed store, hash-verified

97}
98
99function isTransformStream(obj) {
100 return !!(
101 obj &&
102 !isNodeStream(obj) &&
103 typeof obj.readable === 'object' &&
104 typeof obj.writable === 'object'
105 );
106}
107
108function isWebStream(obj) {
109 return isReadableStream(obj) || isWritableStream(obj) || isTransformStream(obj);

Callers 9

readableMethod · 0.85
writableMethod · 0.85
[kTransfer]Method · 0.85
isWebStreamFunction · 0.85
pumpToWebFunction · 0.85
pipelineImplFunction · 0.85
compose.jsFile · 0.85

Calls 1

isNodeStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…