@aero/xkcd
v1.1.1
Published
Aero's implementation of the xkcd API.
Downloads
6
Readme
Aero XKCD wrapper
Aero's implementation of the xkcd API using @aero/centra
Usage
const { XKCDClient } = require('@aero/xkcd');
const xkcd = new XKCDClient(); // optional: { cacheLifetime: number }; in ms
// Get a random comic
xkcd.random(): Promise<XKCDComic>
// Get a comic by ID
xkcd.id(id: number): Promise<XKCDComic>