Socket
Book a DemoInstallSign in
Socket

@kamyu/kbinxml

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kamyu/kbinxml

konmai binary xml

latest
Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
8
14.29%
Maintainers
2
Weekly downloads
 
Created
Source

kbinxml-wasm

rust kbinxml built with wasm to be usable in nodejs.

Installation

npm i @kamyu/kbinxml

Build

Requirements

  • wasm-pack
  • rust

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;

FAQs

Package last updated on 25 Feb 2023

Did you know?

Socket

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.

Install

Related posts