1.0.4 • Published 3 years ago

xkcd-helper v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

xkcd-helper

A promise-based helper library for https://www.xkcd.com/

Prerequisites

  • node.js - 0.12.0+ (Due to the use of native promises)

Installation

npm install xkcd-helper

Usage

Everything in this package is promise-based so using this package is very easy.

Example:

const xkcd = require("xkcd-helper");

xkcd.getLatest().then((comicData) => console.log(data))
.catch((err) => console.log(err));

List of available commands

  • getLatest(): Gets the latest comic on https://www.xkcd.com/.
  • getComic(comicNum): Takes one argument (an integer). Gets the specified comic.
  • getRandom(): Gets a random comic.

Having issues?

Open up an issue on the github page and I will try to fix the issue ASAP.

1.0.4

3 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago