MCPcopy Create free account
hub / github.com/sindresorhus/execa / isWritableStream

Function isWritableStream

lib/stdio/type.js:147–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146const isReadableStream = value => Object.prototype.toString.call(value) === '[object ReadableStream]';
147export const isWritableStream = value => Object.prototype.toString.call(value) === '[object WritableStream]';
148const isWebStream = value => isReadableStream(value) || isWritableStream(value);
149const isTransformStream = value => isReadableStream(value?.readable) && isWritableStream(value?.writable);
150

Callers 3

direction.jsFile · 0.90
isWebStreamFunction · 0.85
isTransformStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected