
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Parses a .pk6 file into a javascript object. This also works in the browser; see here for an example.
To install:
npm install pkparse
var pkparse = require('pkparse');
pkparse.parseBuffer(buf, [options])
buf
(Buffer): A Buffer in .pk6 formatoptions
(object): If options.parseNames
is set to true
, assigns readable names to the returned data in addition to property IDs. options.gen
defines the generation to use. Defaults to gen 6, supports gen 6 and 7.pkparse.parseFile(filepath, [options])
filepath
(string): The path to a .pk6 filepkparse.parseBuffer(require('fs').readFileSync(filepath, options))
While most of the information in the parsed object will be in a readable format, some information (such as move data) will still be represented by an ID Number. This is because the string representation of this data can vary depending on game and language. The data can be exposed by setting options.parseNames
to true
, or by using these helper functions:
pkparse.assignReadableNames(data)
data
(object) Parsed data, in the format of data returned by pkparse.parseBuffer
data
object by all supported "name" properties to it. For example, the abilityName
property will be added based on the existing abilityId
property. Note that future updates may support more names than are currently available.pkparse.getPokemonData(dexNo)
dexNo
(number): The national dex number of the desired speciespkparse.getItemData(itemId)
itemId
(number): The item ID of the desired itempkparse.getMoveData(moveId)
moveId
(number): The move ID of the desired movepkparse.getAbilityData(abilityId)
abilityId
(number): The ability ID of the desired abilitypkparse.getNatureData(natureId)
natureId
(number): The nature ID of the desired naturepkparse.getMedalData(medalData)
medalData
(number): A bitmap representing data on super training medals. In most cases, this will be directly passed from the medalData
property which is exposed from a parsed pk6 file.pkparse.getRibbonData(ribbonData)
ribbonData
(number): A bitmap representing data on super training medals. In most cases, this will be directly passed from the ribbonData
property which is exposed from a parsed pk6 file.pkparse.SUPPORTED_GENS
Most of the raw data for these functions was collected from Pokeapi, without which this project would have been substantially harder.
FAQs
Extracts data from .pk6 files
We found that pkparse demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.