kyx

Ky with ES5 and UMD, tiny and elegant HTTP client.

Usage no npm install needed!

<script type="module">
  import kyx from 'https://cdn.skypack.dev/kyx';
</script>

README

KyX

Ky that supports ESM5 and UMD.

Ky is a tiny and elegant HTTP client based on the browser Fetch API

Read more: https://github.com/sindresorhus/ky

Install

npm install

Usage

TS/ES2015


import ky from 'kyx';

const result = await ky.get('/').json();

Browser

Add dist/kyx.min.js to your project.


var ky = kyx['default'];

// ...

License

MIT