MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / toStream

Function toStream

out/cli.cjs:75697–75705  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

75695function ensureNodeStream(stream4) {
75696 if (stream4 instanceof ReadableStream) {
75697 makeAsyncIterable(stream4);
75698 return import_node_stream2.Readable.fromWeb(stream4);
75699 } else {
75700 return stream4;
75701 }
75702}
75703function toStream(source) {
75704 if (source instanceof Uint8Array) {
75705 return import_node_stream2.Readable.from(Buffer.from(source));
75706 } else if (isBlob3(source)) {
75707 return toStream(getRawContent(source));
75708 } else {

Callers

nothing calls this directly

Calls 4

isBlob3Function · 0.85
getRawContentFunction · 0.85
ensureNodeStreamFunction · 0.85
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…