Skip to content

v1.3.0

Latest
Compare
Choose a tag to compare
@crizmo crizmo released this 03 Nov 09:59
· 4 commits to main since this release

Options

Options Description Usage Params
getAnime Anime images - png / gif anyanime.getAnime({}) { type: "png", number: 10 }
checkUpdate Check for new npm package updates. anyanime.checkUpdate(true) true or false

By default the type is png and number is 1.

Max number of images you can ask for at a time is 10.

Functions

const anyanime = require("anyanime");

anyanime.getAnime({}).then(console.log); // Shows 1 random anime pfp image.

anyanime.getAnime({ type: "png", number: 10 }).then(console.log); // Shows 10 random anime pfp images.
anyanime.getAnime({ type: "gif", number: 10 }).then(console.log); // Shows 10 random anime gif pfp images.

// Both are async functions because it fetches the images from AnyAnime Api and that might take some time.

anyanime.checkUpdate(true);