1.0.2 • Published 5 years ago
msbt2json v1.0.2
msbt2json
msbt2json is an npm package to convert MSBT file to JSON file.
| Type | Description | Conversion destination |
|---|---|---|
| LBL1 | Message labels | JSON Key |
| TXT2 | Message strings | JSON Value |
| ATR1 | Attributes | Do not convert |
| TSY1 | Text style | Do not convert |
Installation
npm i msbt2jsonUsage
The JSON file converted from the MSBT file will be output to the same directory as the MSBT file.
const msbt2json = require('msbt2json');
const jsonFilePath = msbt2json.convert('<MSBT file path>');Example
const msbt2json = require('msbt2json');
const jsonFilePath = msbt2json.convert('/home/foo/bar.msbt');
// --> output "/home/foo/bar.json"npm run
npm run convert -- <MSBT file path>