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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.1
    9,569
    • latest

Version History

Package Sidebar

Install

npm i @libsql/isomorphic-fetch

Weekly Downloads

61,512

Version

0.3.1

License

MIT

Unpacked Size

3.51 kB

Total Files

7

Last publish

Collaborators

  • notrab
  • luciofranco
  • penberg