Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bgmc

yjl9903705MIT0.0.12TypeScript support: included

Bangumi Client

bangumi, bgm

readme

bgmc

version CI

JavaScript Bangumi client bindings.

Installation

npm i bgmc

Usage

Create the bangumi API client, and fetch something.

import { BgmClient } from 'bgmc';

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

console.log(calendar);

Get the lastest bangumi data from the cdn of bgmd.

import { getCalendar } from 'bgmc/data';

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

License

MIT License © 2023 XLor