@randomkits/pokemon
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Random Pokemon Generator

Online Example: RandomKits - Can’t Decide? Try Random Kits!

Random get pokemon data, The data is a JSON file and can be used wherever.

Install

npm install @randomkits/pokemon

yarn add @randomkits/pokemon

pnpm add @randomkits/pokemon

Interface

interface Pokemon {
  generation: string;
  img: {
    normal: string;
    shiny: string;
  };
  num: string;
  name: string;
  type: string;
}

Usage

import Pokemon from "@randomkits/pokemon";

// simple
Pokemon.random();
// => Pokemon[]

// random number default => {num: 6, language: "en"}
Pokemon.random({ num: 6, language: "en" });

Api

Pokemon.random({num?, language?})

Get Random Genshin Impact Character.

num

  • Type: number
  • Default: 6

language

  • Type: string
  • Default: en

Supported languages

@randomkits/pokemon 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)

Issues

Github Issues

Examples

Packages

Package Sidebar

Install

npm i @randomkits/pokemon

Weekly Downloads

2

Version

0.1.4

License

AGPL-3.0

Unpacked Size

93.8 MB

Total Files

2380

Last publish

Collaborators

  • meetqy