https://github.com/exodusmovement/fetch
https://github.com/exodusmovement/fetch
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/exodusmovement/fetch
- Owner: ExodusMovement
- License: mit
- Created: 2020-08-17T18:05:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-07T15:47:56.000Z (11 months ago)
- Last Synced: 2025-07-07T16:58:55.366Z (11 months ago)
- Language: JavaScript
- Size: 444 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @exodus/fetch
A small wrapper around global fetch and `node-fetch`:
1. In React Native, global `fetch` is used without importing `node-fetch`
2. In Browser, global `fetch` is used without importing `node-fetch`
3. Otherwise `node-fetch` is imported, but when `window.fetch` is present (e.g. in Electron
`renderer` process), it is used.
4. Otherwise (e.g. in Electron `browser` process and Node.js), `node-fetch` is used.