Files
common/packages/x-fetch
2022-03-27 10:17:39 +03:00
..
2022-03-27 06:27:30 +00:00
2022-03-27 10:17:39 +03:00

@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();