MCPcopy
hub / github.com/di-sukharev/opencommit / ReadableStreamFrom

Function ReadableStreamFrom

out/cli.cjs:13771–13776  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

13769 return typeIsObject(stream4) && typeof stream4.getReader !== "undefined";
13770 }
13771 function ReadableStreamFrom(source) {
13772 if (isReadableStreamLike(source)) {
13773 return ReadableStreamFromDefaultReader(source.getReader());
13774 }
13775 return ReadableStreamFromIterable(source);
13776 }
13777 function ReadableStreamFromIterable(asyncIterable) {
13778 let stream4;
13779 const iteratorRecord = GetIterator(asyncIterable, "async");

Callers 3

fromMethod · 0.85
extractBodyFunction · 0.85
bodyMethod · 0.85

Calls 6

isReadableStreamLikeFunction · 0.85
convertIterableToBufferFunction · 0.85
getReaderMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…