open-index/open-npm huggingface dataset:
npm package: @kamyu/capacitor-nfcfemulator
Description: NfcF Card Emulator
Latest version: 0.1.0

# Capacitor-NfcFEmulator

NfcF Card Emulator  
**Android only!!**

## Install

```bash
npm install @kamyu/capacitor-nfcfemulator
npx cap sync
```

## API

<docgen-index>

* [`enable()`](#enable)
* [`disable()`](#disable)
* [`getNfcId()`](#getnfcid)
* [`setNfcId(...)`](#setnfcid)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### enable()

```typescript
enable() => any
```

**Returns:** <code>any</code>

--------------------


### disable()

```typescript
disable() => any
```

**Returns:** <code>any</code>

--------------------


### getNfcId()

```typescript
getNfcId() => any
```

**Returns:** <code>any</code>

--------------------


### setNfcId(...)

```typescript
setNfcId(options: { nfcId: string; }) => any
```

| Param         | Type                            |
| ------------- | ------------------------------- |
| **`options`** | <code>{ nfcId: string; }</code> |

**Returns:** <code>any</code>

--------------------

</docgen-api>
npm package: @kamyu/kbinxml
Description: konmai binary xml
Author: Byeon Seongun
Latest version: 2.0.2

# kbinxml-wasm

rust kbinxml built with wasm to be usable in nodejs.

## Installation

```shell
npm i @kamyu/kbinxml
```

## Build

### Requirements

- [wasm-pack](https://rustwasm.github.io/wasm-pack/)
- [rust](https://www.rust-lang.org/)

### Command

```shell
npm run build
```

### Type

```typescript
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;
```
npm package: @kamyu/lz77
Description: konmai lz77 compression
Author: Byeon Seongun
Latest version: 1.0.0

# Lz77-wasm

rust lz77 library built with wasm to be usable in nodejs.

## Installation

```shell
npm i @kamyu/lz77
```

## Build

### Requirements

- [wasm-pack](https://rustwasm.github.io/wasm-pack/)
- [rust](https://www.rust-lang.org/)

### Command

```shell
npm run build
```

## How to use?

> **parameter:** Buffer or Uint8Array  
> **return:** Uint8Array

### Javascript

```javascript
const fs = require('fs');
const lz77 = require('@kamyu/lz77');

lz77.compress(fs.readFileSync('test.txt'));
lz77.decompress(fs.readFileSync('test.txt.lz77'));
```

### Typescript

```typescript
import * as fs from 'fs';
import * as lz77 from '@kamyu/lz77';

lz77.compress(fs.readFileSync('test.txt'));
lz77.decompress(fs.readFileSync('test.txt.lz77'));
```
npm package: @kamyu/nfc2card
Description: Konmai Card NFC ID Encoder/Decoder
Author: Byeon Seongun
Latest version: 0.1.1

# @kamyu/nfc2card

Konmai Card NFC ID encode/decode library

## Installation

```shell
npm i @kamyu/nfc2card
```

## Build

```shell
npm run build
```

## Usage

### Javascript

```javascript
const { encode, decode } = require('@kamyu/nfc2card');
encode('NFC ID'); // => 'CARD ID'
decode('CARD ID'); // => 'NFC ID'
```

### Typescript

```typescript
import { encode, decode } from '@kamyu/nfc2card';

encode('NFC ID'); // => 'CARD ID'
decode('CARD ID'); // => 'NFC ID'
```