New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bahamut-anime

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 18 Jan 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc