npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lucasmod/pokemon.js

v2.1.6

Published

Versão corrigida do pokemon.js com suporte a ESM e créditos para lucasmod

Downloads

499

Readme

@lucasmod/pokemon.js

A maneira mais fácil de interagir com a PokéAPI no Node.js!

NPM Version NPM Downloads Node.js Version License


⚡️ Sobre o Projeto

Esta é uma versão corrigida e mantida do pacote original pokemon.js, desenvolvida por lucasmod.

O foco desta versão é garantir a compatibilidade total com as versões mais recentes do Node.js, corrigindo o problema de importação de módulos (ESM) que afetava o pacote original. @lucasmod/pokemon.js é um módulo Node.js que simplifica a interação com a PokéAPI, permitindo que você acesse dados de Pokémon, habilidades, movimentos e muito mais de forma rápida e eficiente.

🛠 Instalação

Requisito: Node.js 12.0.0 ou superior. Nenhuma dependência externa é necessária.

Utilize o npm ou git clone para instalar o pacote em seu projeto:

npm install @lucasmod/pokemon.js

Ou

git clone https://github.com/Otakump4/pokemon.js

🚀 Exemplo de Uso

O pacote utiliza a sintaxe moderna de ESM (import/export).

import Pokemon from '@lucasmod/pokemon.js';

// Busca os dados do Pokémon 'zorua' e imprime no console
Pokemon.get_pokemon('zorua').then(console.log);

/*
  Saída (Exemplo - Retorna o JSON completo da PokéAPI):
  {
    id: 570,
    name: 'zorua',
    height: 7,
    weight: 125,
    base_experience: 66,
    abilities: [ ... ],
    types: [ ... ],
    ... // O objeto completo é muito maior!
  }
*/

📚 Referência da API (Métodos)

Abaixo estão os métodos principais disponíveis no objeto Pokemon:

| Método | Descrição | Parâmetros | Retorno | | :--- | :--- | :--- | :--- | | get_pokemon | Retorna dados detalhados de um Pokémon. | pokemon (string), fields (array, opcional) | Promise<Object> (JSON do Pokémon) | | get_type | Retorna dados de um tipo ou os tipos de um Pokémon. | name (string), is_pokemon (boolean, opcional), fields (array, opcional) | Promise<Object> (JSON do Tipo) ou Promise<Array> (Tipos do Pokémon) | | get_ability | Retorna dados de uma habilidade ou as habilidades de um Pokémon. | name (string), is_pokemon (boolean, opcional), fields (array, opcional) | Promise<Object> (JSON da Habilidade) ou Promise<Array> (Habilidades do Pokémon) | | get_evolution_line | Retorna a linha evolutiva completa de um Pokémon. | pokemon (string), fields (array, opcional) | Promise<Array> (Linha Evolutiva) | | get_move | Retorna dados detalhados sobre um movimento (ataque). | move (string), fields (array, opcional) | Promise<Object> (JSON do Movimento) | | get_nature | Retorna os atributos afetados por uma Natureza. | nature (string), fields (array, opcional) | Promise<Object> (Atributos de Natureza) | | get_item | Retorna dados detalhados sobre um item. | item (string), fields (array, opcional) | Promise<Object> (JSON do Item) | | get_generation | Retorna dados sobre uma Geração específica. | generation (string/number), fields (array, opcional) | Promise<Object> (JSON da Geração) | | get_region | Retorna dados sobre uma Região específica. | region (string), fields (array, opcional) | Promise<Object> (JSON da Região) | | get_all | Retorna uma lista de todos os recursos de um tipo. | type (string: 'pokemon', 'type', 'ability', etc.) | Promise<Array> (Lista de Nomes) |

🔗 Recursos e Links

  • NPM: [https://www.npmjs.com/package/@lucasmod/pokemon.js]
  • GitHub (Original): [https://github.com/Otakump4/pokemon.js.git]
  • PokéAPI (Fonte de Dados): [https://pokeapi.co/] 2

🌟 Contribuição

Sinta-se à vontade para abrir issues ou enviar pull requests no repositório do GitHub para melhorias, correções de bugs ou novas funcionalidades.

📜 Licença

Este projeto está licenciado sob a Licença MIT.


📱 Conecte-se com o Autor

lucasmod

Instagram YouTube GitHub WhatsApp Telegram