the-forest/client/node_modules/@libsql/isomorphic-fetch
2024-09-17 20:35:18 -04:00
..
index.d.ts client raw doggin the db 2024-09-17 20:35:18 -04:00
node.cjs client raw doggin the db 2024-09-17 20:35:18 -04:00
node.js client raw doggin the db 2024-09-17 20:35:18 -04:00
package.json client raw doggin the db 2024-09-17 20:35:18 -04:00
README.md client raw doggin the db 2024-09-17 20:35:18 -04:00
web.cjs client raw doggin the db 2024-09-17 20:35:18 -04:00
web.js client raw doggin the db 2024-09-17 20:35:18 -04:00

@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);
    });
});