@kamyu/kbinxml
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

kbinxml-wasm

rust kbinxml built with wasm to be usable in nodejs.

Installation

npm i @kamyu/kbinxml

Build

Requirements

Command

npm run build

Type

enum EncodingType {
    None = 0x00,
    ASCII = 0x20,
    ISO_8859_1 = 0x40,
    EUC_JP = 0x60,
    SHIFT_JIS = 0x80,
    UTF_8 = 0xA0,
}

type XmlResult = { data: string, encoding: EncodingType };
type BinaryResult = { data: Uint8Array, encoding: EncodingType };
type BinaryOptions = { encoding?: EncodingType, compression?: boolean };

to_bin(xml: string): BinaryResult;
to_bin_with_options(xml: string, options: BinaryOptions): BinaryResult;
to_xml(bin: Uint8Array): XmlResult;

/@kamyu/kbinxml/

    Package Sidebar

    Install

    npm i @kamyu/kbinxml

    Weekly Downloads

    3

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    576 kB

    Total Files

    8

    Last publish

    Collaborators

    • kamyu
    • kds3481