MCPcopy Create free account
hub / github.com/vercel/vercel / toNodeReadable

Function toNodeReadable

packages/cli/src/util/fetch.ts:105–111  ·  view source on GitHub ↗
(body: Response['body'])

Source from the content-addressed store, hash-verified

103}
104
105export function toNodeReadable(body: Response['body']): Readable {
106 if (!body) {
107 throw new TypeError('Expected response body');
108 }
109
110 return Readable.fromWeb(body as unknown as ReadableStream<Uint8Array>);
111}

Callers 6

fetch.test.tsFile · 0.90
extractExampleFunction · 0.90
processChargesFunction · 0.90
displayRuntimeLogsFunction · 0.90
printEventsFunction · 0.90
createProxyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected