MCPcopy
hub / github.com/SukkaW/Surge / fetchRemoteTextByLine

Function fetchRemoteTextByLine

Build/lib/fetch-text-by-line.ts:43–45  ·  view source on GitHub ↗
(url: string, processLine = false)

Source from the content-addressed store, hash-verified

41};
42
43export function fetchRemoteTextByLine(url: string, processLine = false): Promise<AsyncIterable<string>> {
44 return $$fetch(url).then(resp => createReadlineInterfaceFromResponse(resp, processLine));
45}
46
47export async function readFileIntoProcessedArray(file: string /* | FileHandle */) {
48 const results = [];

Calls 2

$$fetchFunction · 0.90

Tested by

no test coverage detected