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

0.2.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);
    });
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @libsql/isomorphic-fetch

      Weekly Downloads

      49,803

      Version

      0.2.1

      License

      MIT

      Unpacked Size

      4.37 kB

      Total Files

      7

      Last publish

      Collaborators

      • notrab
      • luciofranco
      • penberg