Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Get Pokémon names
The name list is just a JSON file and can be used wherever.
npm install pokemon
const pokemon = require('pokemon');
pokemon.all();
//=> ['Bulbasaur', …]
pokemon.random();
//=> 'Snorlax'
pokemon.getName(147);
//=> 'Dratini'
pokemon.getId('Dratini');
//=> 147
Get all Pokémon names as a string[]
.
Type: string
Default: 'en'
Language code to retrieve the list of Pokémon for.
pokemon.all();
//=> ['Bulbasaur', …]
pokemon.all('de');
//=> ['Bisasam', …]
Get random Pokémon name.
Type: string
Default: 'en'
Language code to retrieve the Pokémon for.
pokemon.random();
//=> 'Vigoroth'
pokemon.random('de');
//=> 'Muntier'
Get Pokémon name from ID.
Type: number
The ID of a Pokémon, retrieved via getId()
.
Type: string
Default: 'en'
Language code to retrieve the Pokémon for.
pokemon.getName(100);
//=> 'Voltorb'
pokemon.getName(100, 'de');
//=> 'Voltobal'
Get Pokémon ID from name.
Type: string
The Pokémon name in the language
locale.
Type: string
Default: 'en'
Language code of the localized name.
pokemon.getId('Snorlax');
//=> 143
pokemon.getId('Relaxo', 'de');
//=> 143
pokemon.languages.has('ja');
//=> true
Pokémon names 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)The language codes follow the IETF BCP 47 standard.
ru
(Russian)
FAQs
Get Pokémon names
The npm package pokemon receives a total of 4,675 weekly downloads. As such, pokemon popularity was classified as popular.
We found that pokemon demonstrated a healthy version release cadence and project activity because the last version was released less than 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.