# anidb

> Basic AniDB requester. Supply your own clientid.

Latest version **0.0.3** (published 2014-07-09) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-07-09 |
| First published | 2014-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Florian Albertz |
| Maintainers | paulavery |
| Keywords | anidb |

## Links

- npm: https://www.npmjs.com/package/anidb
- Repository: https://github.com/PaulAvery/node-anidb
- Issues: https://github.com/PaulAvery/node-anidb/issues
- npm.io page: https://npm.io/package/anidb

## Dependencies (3)

- [bops](https://npm.io/package/bops.md) ~0.1.1
- [async](https://npm.io/package/async.md) ~0.2.9
- [xml2js](https://npm.io/package/xml2js.md) ~0.4.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2014-07-09
- 0.0.2 — 2014-01-20
- 0.0.1 — 2014-01-15

## README

Node AniDB Queries
==================

This module provides a very minimal interface to fetch data from anidb.net. You may want to read the guidelines in the anidb [wiki](http://wiki.anidb.net/w/HTTP_API_Definition) first.

You will see, that you need a client id and version number (instructions in the wiki) which can be supplied to the main Connection object.

Usage
-----
The module exports a constructor function which takes the clientid and the clientversion as its only two arguments.

``` javascript
var Anidb = require('anidb');
var db = new Anidb('someclientid', 'someclientversion');
```

### Anidb.request(options, cb)
Sends a basic request to anidb.net with your client information and any supplied data. Any properties on the options object will be sent as part of the querystring and the callback is called as soon as the entire response is available.
The response will be an xml string.

### Anidb.getAnime(id, cb)
Uses `Anidb.request()` to fetch a single anime's data. The callback is called after the server response is run through [xml2js](https://www.npmjs.org/package/xml2js).

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