MCPcopy
hub / github.com/hieunc229/copilot-clone / fetchPageTextContent

Function fetchPageTextContent

src/utils/fetchPageContent.ts:8–15  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

6}
7
8export function fetchPageTextContent(url: string): Promise<FetchPageResult> {
9 return new Promise((resolve, reject) => {
10 return fetch(url)
11 .then(rs => rs.text())
12 .then(textContent => resolve({textContent, url}))
13 .catch(reject);
14 });
15}

Callers 2

searchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected