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

Function getTransformStreamType

lib/stdio/type.js:71–74  ·  view source on GitHub ↗
(value, optionName)

Source from the content-addressed store, hash-verified

69};
70
71const getTransformStreamType = (value, optionName) => {
72 validateNonGeneratorType(value, optionName, 'web TransformStream');
73 return 'webTransform';
74};
75
76const validateNonGeneratorType = ({final, binary, objectMode}, optionName, typeName) => {
77 checkUndefinedOption(final, `${optionName}.final`, typeName);

Callers 2

getStdioItemTypeFunction · 0.85
getTransformObjectTypeFunction · 0.85

Calls 1

validateNonGeneratorTypeFunction · 0.85

Tested by

no test coverage detected