Interact with the XKCD API.
The API is the same on all this platforms ✔️
import { latestXkcd, xkcd } from "https://deno.land/x/xkcd/mod.ts";
const myFavoriteXKCD = await xkcd(304);
myFavoriteXKCD.title; //=> Nighttime Stories
await latestXkcd(); // Metadata...
import { latestXkcd, xkcd } from "@ultirequiem/xkcd";
You can use any CDN 🔥
Eg 👉
ESM
It includes other helper methods, check the docs.
Is hosted on Deno Doc 📄
- Deno 🎃
deno install --allow-net https://deno.land/x/xkcd/xkcd.ts
- Node.js 🐼
npm install -g @ultirequiem/xkcd
xkcd --help
A binary for multiple platforms is provided too!
Open an Issue, I will check it a soon as possible 👀
If you want to hurry me up a bit send me a tweet 😆
Consider supporting me on Patreon if you like my work 🙏
Don't forget to star the repo ⭐
Eliaz Bobadilla - Creator and Maintainer 💪
See also the full list of contributors who participated in this project ✨
We use Semantic Versioning. For the versions available, see the tags 🏷️
Licensed under the MIT License 📄