Skip to content

Instantly share code, notes, and snippets.

@chico
Created February 19, 2022 14:00
Show Gist options
  • Save chico/a1711b26604cfda1c119b740325af1ea to your computer and use it in GitHub Desktop.
Save chico/a1711b26604cfda1c119b740325af1ea to your computer and use it in GitHub Desktop.
Joke in zx
#!/usr/bin/env zx
const url = "https://sv443.net/jokeapi/v2/joke/Programming?type=single";
const res = await fetch(url);
console.log((await res.json()).joke);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment