| .. | ||
| index.d.ts | ||
| node.cjs | ||
| node.js | ||
| package.json | ||
| README.md | ||
| web.cjs | ||
| web.js | ||
@libsql/isomorphic-fetch
This package provides fetch() on Node (using node-fetch) and in Deno and Cloudflare Workers (using the native fetch()). Supports both CommonJS and ES modules.
import { fetch } from "@libsql/isomorphic-fetch";
fetch("http://localhost:8080").then((response) => {
response.text().then((text) => {
console.log(text);
});
});