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

1.0.0 • Public • Published

@fetch-impl/cross-fetch

User Configurable Fetch Implementation. cross-fetch adapter.

Usage

import { useCrossFetch } from "@fetch-impl/cross-fetch";
import fetch from "@fetch-impl/fetcher";

// configure fetch to use cross-fetch
useCrossFetch();

// use fetch as usual
fetch("https://example.com").then(async (res) => {
    console.log(res.status, await res.text());
});

Readme

Keywords

Package Sidebar

Install

npm i @fetch-impl/cross-fetch

Weekly Downloads

26

Version

1.0.0

License

MIT

Unpacked Size

5.96 kB

Total Files

7

Last publish

Collaborators

  • jacoblincool