JSPM

@polkadot/x-fetch

13.5.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 145360
  • Score
    100M100P100Q169628F
  • License Apache-2.0

A cross-environment fetch replacement

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