MCPcopy
hub / github.com/unjs/ofetch / main

Function main

test/playground.ts:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { $fetch } from "../src/index.ts";
2
3async function main() {
4 // const r = await $fetch<string>('http://google.com/404')
5 const r = await $fetch<string>("http://httpstat.us/500");
6 // const r = await $fetch<string>('http://httpstat/500')
7
8 console.log(r);
9}
10
11// eslint-disable-next-line unicorn/prefer-top-level-await
12main().catch((error) => {

Callers 1

playground.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…