@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();
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();
npm i @polkadot/x-fetch
58,268
12.6.2
Apache-2.0
16.8 kB
19