mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
9 lines
195 B
TypeScript
9 lines
195 B
TypeScript
export async function fetchSync(ctx) {
|
|
const str = ctx.arguments[0].toString();
|
|
|
|
const response = await fetch(str);
|
|
const text = await response.text();
|
|
|
|
return <string value={text} />;
|
|
}
|