Socket
Socket
Sign inDemoInstall

bahamut-anime

Package Overview
Dependencies
8
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bahamut-anime

Interact with the Bahamut Anime API in a simple and easy way.


Version published
Weekly downloads
37
decreased by-2.63%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Bahamut Anime API

Interact with the Bahamut Anime API in a simple and easy way.

Installation

pnpm i bahamut-anime

Use npm or yarn is also fine.

Examples

There are some examples, you can also checkout the tests.

Search "Fate" and get titles

import { BahamutAnime } from "bahamut-anime";

const baha = new BahamutAnime();
const animes = await baha.search("Fate");
const titles = await Promise.all(animes.map((anime) => anime.title()));

console.log(titles);

Get danmu of each episode of "Bocchi the Rock!"

import { Anime } from "bahamut-anime";

const anime = new Anime(113142); // sn of "Bocchi the Rock!"
const episodes = await anime.episodes();
const danmu = await Promise.all(episodes["0"].map((episode) => episode.danmu()));

for (const data of danmu) {
    console.log(data);
}

episodes["0"] for japanese version, episodes["1"] for movie, episodes["2"] for OVA, episodes["3"] for chinese version.

In this case, only japanese version is available.

Keywords

FAQs

Last updated on 18 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc