@aero/xkcd

1.1.1 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @aero/xkcd

Weekly Downloads

4

Version

1.1.1

License

BSD-3-Clause

Unpacked Size

3.59 kB

Total Files

6

Last publish

Collaborators

  • nekiono
  • princessravy