# comichron-data-browser-client

> xhr-based client for https://github.com/comichron-data/api

Latest version **2.0.0** (published 2016-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install comichron-data-browser-client
pnpm add comichron-data-browser-client
yarn add comichron-data-browser-client
bun add comichron-data-browser-client
```

## 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.0.0 |
| Published | 2016-10-08 |
| First published | 2016-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Salaets |
| Maintainers | psalaets |
| Keywords | comichron-data, comichron, comic |

## Links

- npm: https://www.npmjs.com/package/comichron-data-browser-client
- Repository: https://github.com/comichron-data/browser-client
- Issues: https://github.com/comichron-data/browser-client/issues
- npm.io page: https://npm.io/package/comichron-data-browser-client

## Dependencies (1)

- [comichron-data-urls](https://npm.io/package/comichron-data-urls.md) 1.0.0

## Recent versions

- 2.0.0 (latest) — 2016-10-08
- 1.0.0 — 2016-10-07

## README

# comichron-data/browser-client

xhr-based client for https://github.com/comichron-data/api

## Install

`npm install comichron-data-browser-client --save`

## Usage

See [demo entry file](https://github.com/comichron-data/browser-client/blob/master/demo/entry.js) for usage examples.

## API

```js
var client = require('comichron-data-browser-client');
```

### client.titles(callback)

Get titles of all comics that have data in the api.

- callback - function with signature `function(error, titles)` where `error` is non-`null` if there was a failure. On success, `error` will be `null` and `titles` will be [json of the titles response](https://github.com/comichron-data/api#apititlesjson).

### client.byMonth(id, callback)

Get a comic's by-month data.

- id - Comic id from titles response
- callback - function with signature `function(error, data)` where `error` is non-`null` if there was a failure. On success, `error` will be `null` and `data` will be [json of the by-month response](https://github.com/comichron-data/api#apititlesidby-monthjson).

### client.byIssue(id, callback)

Get a comic's by-issue data.

- id - Comic id from titles response
- callback - function with signature `function(error, data)` where `error` is non-`null` if there was a failure. On success, `error` will be `null` and `data` will be [json of the by-issue response](https://github.com/comichron-data/api#apititlesidby-issuejson).

### client.sourceData(year, month, callback)

Get source data for a specific year/month.

- year - 4 digit year. String or Number.
- month - 1 or 2 digit month. January is 1. String or Number.
- callback - function with signature `function(error, records)` where `error` is non-`null` if there was a failure. On success, `error` will be `null` and `records` will be [json of the source data response](https://github.com/comichron-data/api#apisource-datayear-monthjson).

## License

MIT

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