MCPcopy Create free account
hub / github.com/Surfer-Org/Protocol / getRawCode

Function getRawCode

docs/src/helpers.js:1–8  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

1export async function getRawCode(url) {
2 const rawUrl = url
3 .replace('github.com', 'raw.githubusercontent.com')
4 .replace('/blob/', '/')
5 const response = await fetch(rawUrl)
6 const text = await response.text()
7 return text
8}
9

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected