A small typed client for the xkcd API.
ESM only, types included: the same import works in Node.js, Bun and browsers.
import { latestXkcd, xkcd } from "@ultirequiem/xkcd";
const myFavoriteXKCD = await xkcd(304);
myFavoriteXKCD.title; //=> Nighttime Stories
await latestXkcd(); // Metadata...Open an Issue, I will check it as soon as possible 👀
If you want to hurry me up a bit send me a tweet 😆
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 📄