Getting Started
Installation
Node.js 16.9.0 or newer is required.
pnpm install genshin-kit.js
Getting Started
const { Client, Language, SpiralAbyss } = require("genshin-kit.js");
// import { Client, Language, SpiralAbyss } from "genshin-kit.js"; (if you use typescript/ESM)
(async () => {
const client = new Client({
language: Language.EnglishUS,
});
client.login("LTUID", "LTOKEN");
const abyss = await client.sprialAbyss.fetch("UID");
console.log(abyss);
})();