Public
Script
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

ky

The ky module is a nice abstraction around the fetch API, which is easily compatible with Deno. It's by the same creator as got, which more explicitly targets Node.js.

Most of the time, the fetch method is all you need! But in a pinch, you can use ky to make things a little fancier.

1
2
3
4
export let kyExample = (async () => {
const { default: ky } = await import("npm:ky");
return ky("https://macwright.com/").text();
})();
October 23, 2023