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

Function isWritableNodeStream

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

Source from the content-addressed store, hash-verified

48}
49
50function isWritableNodeStream(obj) {
51 return !!(
52 obj &&
53 typeof obj.write === 'function' &&
54 typeof obj.on === 'function' &&
55 (!obj._readableState || obj._writableState?.writable !== false) // Duplex
56 );
57}
58
59function isDuplexNodeStream(obj) {
60 return !!(

Callers 5

isWritableEndedFunction · 0.85
isWritableFinishedFunction · 0.85
isWritableFunction · 0.85
duplexify.jsFile · 0.85
eosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…