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

Function isTransformStream

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

Source from the content-addressed store, hash-verified

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
151const isAsyncIterableObject = value => isObject(value) && typeof value[Symbol.asyncIterator] === 'function';
152const isIterableObject = value => isObject(value) && typeof value[Symbol.iterator] === 'function';

Callers 3

getStdioItemTypeFunction · 0.85
getTransformObjectTypeFunction · 0.85
getGeneratorObjectTypeFunction · 0.85

Calls 2

isReadableStreamFunction · 0.85
isWritableStreamFunction · 0.85

Tested by

no test coverage detected