@pkhex-everywhere/engine
v0.21.0
Published
PKHeX in the browser: load, read and edit Pokémon save files.
Readme
@pkhex-everywhere/engine
Runs PKHeX in the browser. Load a Pokémon save file, read and edit it, and export it. The package contains the .NET runtime with PKHeX.Core.
Documentation · Getting started · API reference
Install
npm install @pkhex-everywhere/engineExample
import { createEngine } from '@pkhex-everywhere/engine'
const engine = createEngine()
const input = document.querySelector<HTMLInputElement>('input[type=file]')!
input.onchange = async () => {
await engine.game.load(input.files![0])
const party = await engine.party.get()
console.log(party.map((pokemon) => `${pokemon.species} Lv. ${pokemon.level}`))
}For React, use @pkhex-everywhere/react.
License
GPL-3.0-or-later, because the runtime contains PKHeX.Core.
_framework/ also bundles third-party code under other licences. @pkhex-everywhere/engine/notices.json lists each component with its version, SPDX licence and source URL.
