# fanart-api

> A Fanart.tv API wrapper for Node.js.

Latest version **1.0.1** (published 2018-10-02) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install fanart-api
pnpm add fanart-api
yarn add fanart-api
bun add fanart-api
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-10-02 |
| First published | 2018-10-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | https://github.com/mioyuan |
| Maintainers | mioyuan |
| Keywords | fanart |

## Links

- npm: https://www.npmjs.com/package/fanart-api
- Repository: https://github.com/mioyuan/Fanart.tv-API
- Homepage: https://github.com/mioyuan/Fanart.tv-API#readme
- Issues: https://github.com/mioyuan/Fanart.tv-API/issues
- npm.io page: https://npm.io/package/fanart-api

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.18.0

## Recent versions

- 1.0.1 (latest) — 2018-10-02
- 1.0.0 — 2018-10-02

## README

## fanart-api

A Fanart.tv API wrapper for Node.js.

## Usage

#### Setup
```
npm install --save fanart-api
```

#### Initialize
```js
const FanartAPI = require('fanart-api');
const fanart = new FanartAPI("your API key");
```

#### Example usage
```js
async function getMovieImages() {
    try {
        const images = await fanart.getMovieImages("tmdb ID");
        console.log(images);
    } catch (e) {
        console.error(e);
    }
}

getMovieImages();
```

```js
fanart.getMovieImages(movieID);      // Get images for movie
fanart.getLatestMovies();            // Latest movies
fanart.getArtistImages(artistID);    // Get images for artist
fanart.getAlbumImages(albumID);      // Get album
fanart.getLabelImages(labelID);      // Get label
fanart.getLatestArtists();           // Latest artists
fanart.getShowImages(showID);        // Get images for show
fanart.getLatestShows();             // Latest shows
```

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