anime-image-search
v1.0.1
Published
An anime image search package.
Downloads
1
Readme
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);
})();