Skip to content

yjl9903/bgmc

Repository files navigation

Bangumi Data / API Clients

version version version CI

  • Bangumi data which is scraped from Bangumi and TMDB
  • TypeScript wrapper of Bangumi API
  • TypeScript wrapper of TMDB API

Usage

bgmd

version

npm i bgmd

You can just use the following cdn to get the latest data.

  • https://unpkg.com/bgmd@0/data/index.json
  • https://unpkg.com/bgmd@0/data/calendar.json
  • https://unpkg.com/bgmd@0/data/full.json

Or you can just use the following APIs in bgmc/data to fetch the latest data from cdn.

import { getCalendar } from 'bgmc/data';

const calendar = await getCalendar();
console.log(calendar);

bgmc

version

npm i bgmc
import { BgmClient } from 'bgmc';

const client = new BgmClient(fetch);
const calendar = await client.calendar();

console.log(calendar);

tmdbc

version

npm i tmdbc
import { TMDBClient } from 'tmdbc';

const client = new TMDBClient({ token: 'Your token' });

License

MIT License © 2023 XLor