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