msbt2json
v1.0.2
Published
Convert MSBT file to JSON file.
Downloads
15
Readme
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 msbt2json
Usage
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>