@libsql/isomorphic-fetch
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

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

/@libsql/isomorphic-fetch/

    Package Sidebar

    Install

    npm i @libsql/isomorphic-fetch

    Weekly Downloads

    60,424

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    3.51 kB

    Total Files

    7

    Last publish

    Collaborators

    • notrab
    • luciofranco
    • penberg