Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/castdrian/pkmn-romaji
Get romaji transliterations of Pokémon names and moves
https://github.com/castdrian/pkmn-romaji
japanese pkmn romaji typescript
Last synced: 16 days ago
JSON representation
Get romaji transliterations of Pokémon names and moves
- Host: GitHub
- URL: https://github.com/castdrian/pkmn-romaji
- Owner: castdrian
- License: mit
- Created: 2022-10-30T10:02:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T14:07:45.000Z (about 2 years ago)
- Last Synced: 2024-10-08T10:54:52.928Z (about 1 month ago)
- Topics: japanese, pkmn, romaji, typescript
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkmn-romaji
Get romaji transliterations of Pokémon names and moves## Installation
```bash
yarn add pkmn-romaji
```## Usage
```ts
import { fetchRomaji } from 'pkmn-romaji';const mon = await fetchRomaji({ mon: 'greninja' });
console.log(mon);
/*
{
number: '658',
name: 'Greninja',
ja: 'ゲッコウガ',
romaji: 'Gekkōga',
trademark: 'Gekkouga'
}
*/const move = await fetchRomaji({ move: 'water shuriken' });
console.log(move);
/*
{
move: 'Water Shuriken',
romaji: 'Mizu Shuriken',
}
*/const allMons = await fetchRomaji({ allMons: true });
console.log(allMons);
/*
[
{
number: '001',
name: 'Bulbasaur',
ja: 'フシギダネ',
romaji: 'Fushigidane',
trademark: 'Fushigidane'
},
...
]
*/const allMoves = await fetchRomaji({ allMoves: true });
console.log(allMoves);
/*
[
{
move: 'Pound',
romaji: 'Hataku'
},
...
]
*/
```