Files
common/packages/x-fetch
2024-01-08 15:08:27 +02:00
..
2024-01-08 15:08:27 +02:00
2023-12-19 10:31:18 +00: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();