Package Exports
- @polkadot/x-fetch
- @polkadot/x-fetch/browser
- @polkadot/x-fetch/cjs/browser
- @polkadot/x-fetch/cjs/node
- @polkadot/x-fetch/cjs/package.json
- @polkadot/x-fetch/cjs/packageInfo
- @polkadot/x-fetch/cjs/react-native
- @polkadot/x-fetch/cjs/shim
- @polkadot/x-fetch/node
- @polkadot/x-fetch/package.json
- @polkadot/x-fetch/packageInfo
- @polkadot/x-fetch/packageInfo.js
- @polkadot/x-fetch/react-native
- @polkadot/x-fetch/shim
- @polkadot/x-fetch/shim.js
Readme
@polkadot/x-fetch
A cross-environment fetch.
Install it via yarn add @polkadot/x-fetch
import { fetch } from '@polkadot/x-fetch';
...
const response = await fetch('https://example.com/something.json');
const json = await response.json();