globalthis-fetch

1.0.3 • Public • Published

globalthis-fetch

A node-fetch compatible override that uses globalThis.fetch.

Why?

Many existing libaries have a depdendency on cross-fetch, isomorphic-fetch, and node-fetch. To avoid taking on transitive dependencies when a global fetch exists, this package allows to override that dependency with the builtin.

Example: pnpm

{
  "pnpm": {
    "overrides": {
      "node-fetch": "npm:globalthis-fetch"
    }
  }
}

/globalthis-fetch/

    Package Sidebar

    Install

    npm i globalthis-fetch

    Weekly Downloads

    1

    Version

    1.0.3

    License

    Apache-2.0

    Unpacked Size

    2.67 kB

    Total Files

    4

    Last publish

    Collaborators

    • statianzo