Bangumi data which is scraped from Bangumi and TMDB.
npm i bgmdIt exports 3 bundled json file:
bgmd: Basic information of all the scraped bangumi subjectbgmd/full: Full information (with summary and more) of all the scraped bangumi subjectbgmd/calendar: Basic information of the onair bangumis that was onairing at the time of package release
import basic from 'bgmd' with { type: 'json' };
import full from 'bgmd/full' with { type: 'json' };
import calendar from 'bgmd/calendar' with { type: 'json' };If you don't want to download this large package, you can just use the following cdn to get the latest data.
bgmd:https://unpkg.com/bgmd@0/dist/index.jsonbgmd/full:https://unpkg.com/bgmd@0/dist/full.jsonbgmd/calendar:https://unpkg.com/bgmd@0/dist/calendar.json
Or use the following helper functions in bgmt/cdn to fetch cdn.
npm i bgmtimport { fetchBasicSubjects, fetchFullSubjects, fetchCalendarSubjects } from 'bgmt/cdn'
// https://unpkg.com/bgmd@0/dist/index.json
await fetchBasicSubjects()
// https://unpkg.com/bgmd@0/dist/full.json
await fetchFullSubjects()
// https://unpkg.com/bgmd@0/dist/calendar.json
await fetchCalendarSubjects()MIT License © 2023 XLor