Get started with ky CDN
MIT licensed
Ky: library for large datasets, efficient indexing and filtering.
Tags:- fetch
- request
- requests
- http
- https
- fetching
- get
- url
- curl
- wget
- net
- network
- ajax
- api
- rest
- xhr
- browser
- got
- axios
- node-fetch
Stable version
Copied!
How to start using ky CDN
// Import the ky library
const { get } = await import('https://cdn.cdnhub.io/ky/1.2.2/index.js');
// Define a function to fetch data from an API
async function fetchData() {
const response = await get('https://jsonplaceholder.typicode.com/todos/1');
const data = await response.json();
console.log(data);
}
// Call the function to fetch data
fetchData();
All versions
0.19.1
0.20.0
0.21.0
0.22.0
0.23.0
0.24.0
0.25.0
0.25.1
0.26.0
0.27.0
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.28.6
0.28.7
0.29.0
0.30.0
0.31.0
0.31.1
0.31.2
0.31.3
0.31.4
0.32.0
0.32.1
0.32.2
0.33.0
0.33.1
0.33.2
0.33.3
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.1.3
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.3.0
1.4.0
1.5.0
1.6.0
1.7.0
1.7.1
*** 1.7.2