Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@libsql/isomorphic-fetch

libsql645.1kMIT0.3.1TypeScript support: included

Isomorphic fetch() in Node, Deno and Cloudflare Workers

fetch, isomorphic, node, deno, workers

readme

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