(url)
| 1 | export 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 |
nothing calls this directly
no outgoing calls
no test coverage detected