@randomkits/genshin-impact-character
v0.1.2
Published
Random Kits - Random Genshin Impact Character Generator Data Module And Random Function.
Downloads
1
Maintainers
Readme
Random Genshin Impact Character Generator
Online Example: RandomKits - Can’t Decide? Try Random Kits!
Random get genshin impact character data, The data is a JSON file and can be used wherever.
Install
npm install @randomkits/genshin-impact-character
yarn add @randomkits/genshin-impact-character
pnpm add @randomkits/genshin-impact-character
Interface
interface GenshinImpactCharacter {
name: string;
element: string;
// element language text
elementText: string;
// github assets url
avatar: string;
id: stirng;
}
Usage
import GenshinImpactCharacter from "@randomkits/genshin-impact-character";
// simple
GenshinImpactCharacter.random();
// => GenshinImpactCharacter[]
// random number default => {num: 6, language: "en"}
GenshinImpactCharacter.random({ num: 6, language: "en" });
Api
GenshinImpactCharacter.random({num?, language?})
Get Random Genshin Impact Character.
num
- Type:
number
- Default:
6
language
- Type:
string
- Default:
en
Supported languages
@randomkits/genshin-impact-character
are available for the following languages:
- de (German)
- en (English)
- fr (French)
- es (Spanish)
- ja (Japanese)
- ko (Korean)
- ru (Russian)
- th (Thai)
- zh-Hans (Simplified Chinese)
- zh-Hant (Traditional Chinese)