@exodus/fetch
v1.7.0
Published
Wrapper around global fetch / node-fetch for Electron and React
Downloads
23,331
Readme
@exodus/fetch
A small wrapper around global fetch and node-fetch
:
In React Native, global
fetch
is used without importingnode-fetch
In Browser, global
fetch
is used without importingnode-fetch
Otherwise
node-fetch
is imported, but whenwindow.fetch
is present (e.g. in Electronrenderer
process), it is used.Otherwise (e.g. in Electron
browser
process and Node.js),node-fetch
is used.