2020-04-04 09:02:59 +02:00
|
|
|
# konami-card-wasm
|
2020-05-06 09:27:41 +02:00
|
|
|
Convert e-amusement card ID and NFC ID to each other.
|
2020-04-04 09:02:59 +02:00
|
|
|
|
|
|
|
## Requirement
|
2020-05-06 09:16:58 +02:00
|
|
|
- go 1.14.2
|
2020-05-06 09:27:41 +02:00
|
|
|
- node.js
|
2020-04-04 09:02:59 +02:00
|
|
|
|
|
|
|
## Build
|
|
|
|
```shell script
|
2020-05-06 09:16:58 +02:00
|
|
|
npm install
|
|
|
|
npm run build
|
2020-04-04 09:02:59 +02:00
|
|
|
```
|
2020-05-06 09:27:41 +02:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
```node
|
2020-05-06 09:32:48 +02:00
|
|
|
import KonamiCard from 'konami-card';
|
2020-05-06 09:27:41 +02:00
|
|
|
|
|
|
|
KonamiCard.encode(nfcId).then(result => console.info(result));
|
|
|
|
KonamiCard.decode(cardId).then(result => console.info(result));
|
|
|
|
```
|