pokehint

1.3.8 • Public • Published

PokeHint

NPM package to automatically solve hints & check the rarity of pokemon, made for pokemon discord bots like Pokétwo

Installation

Use the package manager npm to install the module.

npm i pokehint

Usage

const { solveHint, checkRarity, getName, getImage } = require("pokehint");

// Solving hints
var hint = "The pokémon is Ch_r__n__r.";
console.log(solveHint(hint)); // Logs 'Charmander'.

// Checking the rarity
var pokemonName = "Moltres";
console.log(checkRarity(pokemonName)); // Logs Moltres' rarity: 'Legendary'.

// Converting a name to a different language
console.log(
  getName({
    name: "Charmander",
    language: "French",
    inputLanguage: "English",
  })
); // Logs the French name of Charmander: 'Salamèche'.

// Getting the Pokétwo image sprite of a specified pokemon
console.log(getImage("charmander", false)); // Logs 'https://cdn.poketwo.net/images/4.png'.

Links

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

/pokehint/

    Package Sidebar

    Install

    npm i pokehint

    Weekly Downloads

    324

    Version

    1.3.8

    License

    ISC

    Unpacked Size

    297 kB

    Total Files

    25

    Last publish

    Collaborators

    • kyan0045