Skip to content

JavaScript libraries for THE IDOLM@STER Million Live! Theater Days

License

Notifications You must be signed in to change notification settings

foooomio/mltd-tools

Repository files navigation

mltd-tools

JavaScript libraries for THE IDOLM@STER Million Live! Theater Days

Libraries

  • Princess Client - HTTP Client for Princess powered by matsurihi.me
  • MLTD Idols - Utility for MLTD idols

Usage

Browser / Deno

Import the library from jsDelivr by ES modules.

import princess from "https://cdn.jsdelivr.net/gh/foooomio/[email protected]/princess-client.js";

Node.js

Download the repository and place it anywhere you like.

If global.fetch is undefined, use a fetch polyfill like cross-fetch.

import "cross-fetch/polyfill";
import princess from "path/to/princess-client.js";

Examples

Princess Client

import princess, { range } from "./princess-client.js";

const cards = await princess.cards.search({
  idolId: 21,
  rarity: "ssr",
});

const logs = await princess.rankings.logs({
  eventId: 70,
  type: "eventPoint",
  ranks: range(1, 10),
});

Be sure to read the terms of service of Princess.

MLTD Idols

import mltd from "./mltd-idols.js";

const allIdols = mltd.getAllIdols();
const idol1 = mltd.getIdolByName("徳川まつり");
const idol2 = mltd.getIdolById(21);
const idols = mltd.getIdolsByType("Princess");

License

MIT License

About

JavaScript libraries for THE IDOLM@STER Million Live! Theater Days

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published