# devcomic

> Get latest dev comics from several comic sites

Latest version **2.4.0** (published 2019-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install devcomic
pnpm add devcomic
yarn add devcomic
bun add devcomic
```

Provides the command `devcomic`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.0 |
| Published | 2019-01-24 |
| First published | 2016-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arnelle Balane |
| Maintainers | arnellebalane |
| Keywords | comics, comic, cli, cli-app |

## Links

- npm: https://www.npmjs.com/package/devcomic
- npm.io page: https://npm.io/package/devcomic

## Dependencies (8)

- [meow](https://npm.io/package/meow.md) 5.0.0
- [chalk](https://npm.io/package/chalk.md) 2.4.2
- [listr](https://npm.io/package/listr.md) 0.14.3
- [cheerio](https://npm.io/package/cheerio.md) 0.22.0
- [open-image](https://npm.io/package/open-image.md) 1.1.0
- [rss-parser](https://npm.io/package/rss-parser.md) 3.6.2
- [@types/execa](https://npm.io/package/@types/execa.md) 0.9.0
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) 7.2.5

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.4.0 (latest) — 2019-01-24
- 2.3.0 — 2019-01-24
- 2.2.0 — 2019-01-24
- 2.1.1 — 2019-01-24
- 2.1.0 — 2019-01-24
- 2.0.0 — 2019-01-24
- 1.0.1 — 2016-04-29
- 1.0.0 — 2016-04-29
- 0.0.1 — 2016-04-27
- 0.0.0 — 2016-04-27

## README

# devcomic

Get latest dev comics from several comic sites.


## Installation

You can install it locally to use the API:

```bash
npm install devcomic
```

or globally to use the CLI:


```
npm install -g devcomic
```


## Usage

```js
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

```bash
$ devcomic --help

  Usage:
    $ devcomic [source ...]

  Sources:
    commitstrip
    xkcd
    hacktoon

  Examples:
    $ devcomic
    $ devcomic commitstrip
    $ devcomic commitstrip xkcd
```


## License

MIT License

---
_Source: https://npm.io/package/devcomic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
