@datafire/xkcd
v7.0.0
Published
DataFire integration for XKCD
Downloads
25
Readme
@datafire/xkcd
Client library for XKCD
Installation and Usage
npm install --save @datafire/xkcd
let xkcd = require('@datafire/xkcd').create();
.then(data => {
console.log(data);
});
Description
Webcomic of romance, sarcasm, math, and language.
Actions
info.0.json.get
Fetch current comic and metadata.
xkcd.info.0.json.get(null, context)
Input
This action has no parameters
Output
- output comic
comicId.info.0.json.get
Fetch comics and metadata by comic id.
xkcd.comicId.info.0.json.get({
"comicId": 0
}, context)
Input
- input
object
- comicId required
number
- comicId required
Output
- output comic
Definitions
comic
- comic
object
- alt
string
- day
string
- img
string
- link
string
- month
string
- news
string
- num
number
- safe_title
string
- title
string
- transcript
string
- year
string
- alt