1.0.1 • Published 2 years ago

anime-image-search v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Anime Image Search

Installation:

yarn add anime-image-search
or
npm i anime-image-search

How to use:

Saucenao Search

import AnimeApi from 'anime-image-search';
import fs from 'fs';

(async () => {
  const api = new AnimeApi({
    saucenaoKey: 'YOUR_API_KEY'
  });

  const image = fs.createReadStream('/path/to/image'); // To use a ReadStream

  const image = fs.readFileSync('/path/to/image'); // To use a buffer

  const image = 'http://example.com/image.jpg'; // To use an url

  // OR you can pass the path directly api.saucenao('/path/to/image')

  const saucenaoSearch = await api.saucenao(image, {
    output_type: 2
    // Saucenao Options
  });
})();

See more saucenao options in Saucenao

IQDB Search

...
  const iqdb = await api.iqdb(image);
})();
1.0.1

2 years ago

1.0.0

2 years ago