globalthis-fetch
v1.0.3
Published
node-fetch compatible override that only uses globalThis.fetch
Maintainers
Readme
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"
}
}
}