New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

devcomic

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devcomic

Get latest dev comics from several comic sites

latest
npmnpm
Version
2.4.0
Version published
Maintainers
1
Created
Source

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

Keywords

comics

FAQs

Package last updated on 24 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts