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

Function isReadable

lib/internal/streams/utils.js:173–180  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

171}
172
173function isReadable(stream) {
174 if (stream && stream[kIsReadable] != null) return stream[kIsReadable];
175 if (typeof stream?.readable !== 'boolean') return null;
176 if (isDestroyed(stream)) return false;
177 return isReadableNodeStream(stream) &&
178 stream.readable &&
179 !isReadableFinished(stream);
180}
181
182function isWritable(stream) {
183 if (stream && stream[kIsWritable] != null) return stream[kIsWritable];

Callers 12

isFinishedFunction · 0.85
pipelineImplFunction · 0.85
compose.jsFile · 0.85
_duplexifyFunction · 0.85
eosFunction · 0.85
abortFetchFunction · 0.85
onAbortedFunction · 0.85
abortFetchFunction · 0.85
onAbortedFunction · 0.85

Calls 3

isReadableNodeStreamFunction · 0.85
isReadableFinishedFunction · 0.85
isDestroyedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…