
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
A package to use the PokeApi
Install pkmonjs with NPM
npm install pkmonjs
or Yarn
yarn add pkmonjs
Enter a pokemon name will receive an object as a response
JavaScript
const {getPokemon,getAllPokemon,getAllPokemonNames} = require('pkmonjs')
const poke = getPokemon('pikachu').then((f)=>
{
if(f) {
console.log(f)
}
}
)
//or use await
const poke =await getPokemon('pikachu')
const names=await getAllPokemonNames()
const pokes=await getAllPokemonNames()
TypeScript
import {
getPokemon,
getAllPokemon,
getAllPokemonNames,
Pokemon,
PokemonNamesArray,
PokemonArray }
from 'pkmonjs';
const poke:Pokemon = getPokemon('pikachu').then((f)=>
{
if(f) {
console.log(f)
}
}
)
//or use await
const poke:Pokemon =await getPokemon('pikachu')
const names:PokemonNamesArray=await getAllPokemonNames()
const pokes:PokemonArray=await getAllPokemonNames()
Response Exemple
Pokemon{
idPokedex: 1,
name: 'bulbasaur',
description: 'While it is young, it uses the nutrients that are stored in the seed on its back in order to grow.',
sexMalePorcentage: 85,
sexFemalePorcentage: 15,
undefinedPorcentage: 0,
stats: {
hp: 45,
attack: 49,
defense: 49,
specialAttack: 65,
specialDefense: 65,
speed: 45,
height: 7,
weight: 69,
types: {
name: [Array],
weakness: [Object]
}
},
image: {
default: 'https://assets.pokemon.com/assets/cms2/img/pokedex/full/001.png',
UrlMaleOrUndefined: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/1.png',
UrlShiny: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/1.png'
},
color: {
name: 'green',
url: 'https://pokeapi.co/api/v2/pokemon-color/5/'
},
habitat: {
name: 'grassland',
url: 'https://pokeapi.co/api/v2/pokemon-habitat/3/'
},
generation: {
name: 'generation-i',
url: 'https://pokeapi.co/api/v2/generation/1/'
}
}
Names{
{ "idPokedex": 1, "pokemonName": "bulbasaur" },
{ "idPokedex": 2, "pokemonName": "ivysaur" },
{ "idPokedex": 3, "pokemonName": "venusaur" },
{ "idPokedex": 4, "pokemonName": "charmander" },
...
}
Pokemons{
Pokemon,
Pokemon,
Pokemon
...
}
FAQs
A package for use PokeAPi
The npm package pkmonjs receives a total of 1 weekly downloads. As such, pkmonjs popularity was classified as not popular.
We found that pkmonjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.