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

Function isWritable

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

Source from the content-addressed store, hash-verified

180}
181
182function isWritable(stream) {
183 if (stream && stream[kIsWritable] != null) return stream[kIsWritable];
184 if (typeof stream?.writable !== 'boolean') return null;
185 if (isDestroyed(stream)) return false;
186 return isWritableNodeStream(stream) &&
187 stream.writable &&
188 !isWritableEnded(stream);
189}
190
191function isFinished(stream, opts) {
192 if (!isNodeStream(stream)) {

Callers 8

isFinishedFunction · 0.70
compose.jsFile · 0.70
_duplexifyFunction · 0.70
eosFunction · 0.70
constructorMethod · 0.50

Calls 3

isWritableNodeStreamFunction · 0.85
isWritableEndedFunction · 0.85
isDestroyedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…