devcomic
v2.4.0
Published
Get latest dev comics from several comic sites
Downloads
34
Readme
devcomic
Get latest dev comics from several comic sites.
Installation
You can install it locally to use the API:
npm install devcomicor globally to use the CLI:
npm install -g devcomicUsage
const devcomic = require('devcomic');
devcomic({sources: ['commitstrip', 'xkcd']}).then(results => {
// [{
// "source": "commitstrip",
// "image": "http://..."
// }, {
// "source": "xkcd",
// "image": "http://..."
// }]
});API
devcomic(options)- Accepts the following options as an object:
options.sources- An array of comic source idenfiers, e.g.
['commitstrip', 'xkcd'] - Available sources are:
commitstrip,xkcd,hacktoons - If not provided, defaults to using all the available sources
- An array of comic source idenfiers, e.g.
- Returns a
Promisethat resolves to an array of objects containing the following keys:source: The comic source identifierimage: The URL to the comic image
- Accepts the following options as an object:
CLI
$ devcomic --help
Usage:
$ devcomic [source ...]
Sources:
commitstrip
xkcd
hacktoon
Examples:
$ devcomic
$ devcomic commitstrip
$ devcomic commitstrip xkcdLicense
MIT License
