1.0.1 • Published 11 months ago

anime-gifs v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Anime Gifs

Anime Gifs is a simple npm package created by Dymidless. It allows you to fetch anime gifs and reactions for various purposes.

List of Reactions

Here is the list of available reactions:

Reaction
airkiss
angrystare
bite
bleh
blush
brofist
celebrate
cheers
clap
confused
cool
cry
cuddle
dance
drool
evillaugh
facepalm
handhold
happy
headbang
hug
kiss
laugh
lick
love
mad
nervous
no
nom
nosebleed
nuzzle
nyah
pat
peek
pinch
poke
pout
punch
roll
run
sad
scared
shout
shrug
shy
sigh
sip
slap
sleep
slowclap
smack
smile
smug
sneeze
sorry
stare
stop
surprised
sweat
thumbsup
tickle
tired
wave
wink
woah
yawn
yay
yes

Installation

First, install the package using npm:

npm install anime-gifs

Usage

The package provides two main functions: getAnimeGif and listReactions.

getAnimeGif(reaction: string, format: string = 'GIF'): Promise

This function fetches a gif based on the reaction provided. The reaction parameter is required. The format parameter is optional and defaults to 'GIF'.

Example usage:

const { getAnimeGif } = require('anime-gifs');

getAnimeGif('happy')
    .then(url => {
        // Use the gif url as needed
    })
    .catch(error => console.error(error));

listReactions(): Promise<string[]>

This function fetches all available reactions.

Example usage:

const { listReactions } = require('anime-gifs');

listReactions()
    .then(reactions => {
        // Use the reactions as needed
    })
    .catch(error => console.error(error));

Error Handling

Both functions will throw an error if there is a problem fetching the data. Make sure to handle these errors appropriately in your application.

Repository

You can find the source code for this package on GitHub.

Author

This package was created by Dymidless. Feel free to reach out if you have any questions or suggestions. ❤️

1.0.1

11 months ago

1.0.0

11 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.1

12 months ago