Image-core v1.0.3
In this new version we fixed bugs and also added the following features
downloadRandomAnimeImageGetRandomAnimeImageUrl
These functions work like the others only that it shows pictures of anime that are in our database.
import { downloadRandomAnimeImage } from 'imagen-core';
async function testDownloadRandomAnimeImage() {
try {
await downloadRandomAnimeImage();
console.log('Random anime image downloaded successfully');
} catch (error) {
console.error('Error downloading random anime image:', error);
}
}
// Test downloadRandomAnimeImage
testDownloadRandomAnimeImage();