npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

anime-api

v1.2.0

Published

<div align="center"> <h1>anime-api</h1> <p> <a href="https://www.npmjs.com/package/anime-api"><img src="https://img.shields.io/npm/v/anime-api?maxAge=3600" alt="npm version" /></a> <a href="https://www.npmjs.com/package/anime-api"><img s

Downloads

20

Readme

Installation

npm install anime-api

Pages Setup :

const Anime = require("anime-api");
const Discord = require("discord.js");
const client = new Discord.Client();


let TopAnime =  new Anime.TopPages({
              messageType : "embed" ,// message or embed default embed //Not Required
              Content : "", // default Top 10 Animes \n [top] //Not Required
              Client : client ,// Discord Client // Required
              ReplyMessage : true, // Message Reply //Not Required
              color : "#3e6deb" , // Color default black //Not Required
              TopAnimes: 10, // Top 10 Anime limit is 50 //Not Required
              Pages : 1 , // Page Number every 10 Animes +1 one Page //Not Required
              ErrorMessage : "Not Found", // default This Page Is Not Found 🙂//Not Required
            });
  

Top With Discord Button Setup :

const Anime = require("anime-api");
const Discord = require("discord.js");
const client = new Discord.Client();
const disbut = require('discord-buttons');
disbut(client);


client.on("message", async function(message){
    if(message.content.startsWith("topButtons")){ //
        let args = message.content.split(" ")
        let TopAnime = new Anime.TopPages({
              Client : client,// Discord Client // Required
              color : "#3e6deb", // Color default black //Not Required
              TopAnimes: 50,// Top 10 Anime limit is 50 //Not Required
              Content : "Top 50 \n[top]",// default Top 10 Animes \n [top] //Not Required
              buttonsTimeout : 100000,//buttons Timeout  default is 100000ms//Not Required
              Pages : Number(args[1]),// Page Number every 10 Animes +1 one Page //Not Required
            })
        return TopAnime.ButtonsPages(client , message , '<' , ">").catch(err => {throw err});
    }
});

Examples

Top with Moved Buttons :

const disbut = require('discord-buttons');
disbut(client);

client.on("message", async function(message){
    if(message.content.startsWith("topButtons")){ //
        let args = message.content.split(" ")
        let TopAnime = new Anime.TopPages({
              Client : client,
              color : "#3e6deb", 
              TopAnimes: 50,
              buttonsTimeout : 100000,
              Pages : Number(args[1]),
            })
        return TopAnime.ButtonsPages(client , message , '<' , ">").catch(err => {throw err});
    }
});

Data Top Animes :

const Anime = require("anime-api");


async function Data() {
    let data = await Anime.TopData(10)// The number required to collect ِTop Anime //The maximum is 50;
    console.log(data)
}

Data()
client.on("message", async function(message){
    if(message.content.startsWith("top")){ 
        let args = message.content.split(" ")
        let TopAnime = new Anime.TopPages({
              messageType : "embed" ,
              Client : client ,
              ReplyMessage : true, 
              color : "#3e6deb" , 
              TopAnimes: 23, 
              Pages : Number(args[1]),
            })
        return TopAnime.top(message);
    }
})

Random Anime Gifs Form tenor.com


/// Random Sad Anime Gifs Form tenor.com
const Anime = require("anime-api");
const RandomGifs =  new Anime.Random();

client.on("message", async (message) => {
    if(message.content.startsWith("random")){ 
     let random = await RandomGifs.randomSadGif();
        message.channel.send(random)
    }
})
/// Find Anime Random Gifs Form tenor.com
const Anime = require("anime-api");
const RandomGifs =  new Anime.Random();

client.on("message", async(message) => {
    if(message.content.startsWith("random")){ 
     let args = message.content.split(" ").slice(1).join(" ")
     let random = await RandomGifs.findRandomGif(args);
     if(random){
        message.channel.send(random)
     } else {
         message.channel.send("Not Found")
     }
    }
})
client.on("message", async function(message){
    if(message.content.startsWith("top")){ //
        let args = message.content.split(" ")
        let TopAnime = new Anime.TopPages({
              messageType : "embed" ,
              Client : client ,
              ReplyMessage : false, 
              color : "#3e6deb" , 
              TopAnimes: 50, 
              Pages : Number(args[1]),
            })
        return TopAnime.top(message);
    }
})