2.1.0 ā¢ Published 2 years ago
@ultirequiem/xkcd v2.1.0
xkcd
Interact with the XKCD API.
Usage
The API is the same on all this platforms āļø
Deno š¦
import { latestXkcd, xkcd } from "https://deno.land/x/xkcd/mod.ts";
const myFavoriteXKCD = await xkcd(304);
myFavoriteXKCD.title; //=> Nighttime Stories
await latestXkcd(); // Metadata...
Node.js š¢š
import { latestXkcd, xkcd } from "@ultirequiem/xkcd";
Browser š
You can use any CDN š„
Eg š ESM āļø SkyPack š Script Tag āļø JSDelivr
It includes other helper methods, check the docs.
Documentation
Is hosted on Deno Doc š
CLI
Install
- Deno š
deno install --allow-net https://deno.land/x/xkcd/xkcd.ts
- Node.js š¼
npm install -g @ultirequiem/xkcd
Usage
xkcd --help
A binary for multiple platforms is provided too!
Support
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 ā
Authors
Eliaz Bobadilla - Creator and Maintainer šŖ
See also the full list of contributors who participated in this project āØ
Versioning
We use Semantic Versioning. For the versions available, see the tags š·ļø
Licence
Licensed under the MIT License š