Do not follow this link

~statianzo/globalthis-fetch

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~statianzo/globalthis-fetch
read/write
git@git.sr.ht:~statianzo/globalthis-fetch

You can also use your local clone with git send-email.

#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"
    }
  }
}
Do not follow this link