random-gif-api-v2
v2.0.1
Published
A Node.js wrapper for the Random GIF API (gifs.rndmserv.de)
Downloads
11
Maintainers
Readme
random-gif-api-v2
A Node.js wrapper for the Random GIF API hosted at gifs.rndmserv.de.
Installation
npm install random-gif-api-v2Usage
const randomGif = require('random-gif-api-v2');
async function fetchGif() {
try {
const result = await randomGif.getGif('anime');
console.log(result);
// Output: { success: true, type: 'anime', url: 'https://gifs.rndmserv.de/images/anime/some-gif.gif' }
} catch (error) {
console.error(error);
}
}
fetchGif();