devcomic
Get latest dev comics from several comic sites
Last updated a year ago by arnellebalane .
MIT · Original npm · Tarball · package.json
$ cnpm install devcomic 
SYNC missed versions from official npm registry.

devcomic

Get latest dev comics from several comic sites.

Installation

You can install it locally to use the API:

npm install devcomic

or globally to use the CLI:

npm install -g devcomic

Usage

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
    • Returns a Promise that resolves to an array of objects containing the following keys:
      • source: The comic source identifier
      • image: The URL to the comic image

CLI

$ devcomic --help

  Usage:
    $ devcomic [source ...]

  Sources:
    commitstrip
    xkcd
    hacktoon

  Examples:
    $ devcomic
    $ devcomic commitstrip
    $ devcomic commitstrip xkcd

License

MIT License

Current Tags

  • 2.4.0                                ...           latest (a year ago)

10 Versions

  • 2.4.0                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |