MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / download

Function download

packages/deno/scripts/download.mjs:2–10  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

1/** Download a url to a string */
2export async function download(url) {
3 try {
4 return await fetch(url).then(res => res.text());
5 } catch (e) {
6 // eslint-disable-next-line no-console
7 console.error('Failed to download', url, e);
8 process.exit(1);
9 }
10}

Callers 2

install-deno.mjsFile · 0.90

Calls 4

textMethod · 0.65
errorMethod · 0.65
fetchFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected