3.0.0 • Published 5 years ago
@rassweiler/kawasaki-as-parser v3.0.0
kawasaki-as-parser
Node module for parsing kawasaki as backup files.
Usage
NPM
$ npm install @rassweiler/kawasaki-as-parserYarn
$ yarn add @rassweiler/kawasaki-as-parserImporting
import KawasakiParser from "@rassweiler/kawasaki-as-parser";Getting Data
The module's functions can be called independently (All calls return promises):
let info = await KawasakiParser.getRobotInformationObject(
utf8StringArray,
robotNumber
);Or the getControllerObject() function can be called and will return an object containing all of the robot information:
let controller = await KawasakiParser.getControllerObject(utf8StringFromAsFile);Typescript types
Currently investigating how to do this.
Milestones
- Parse comments
- Parse Robot Programs
- Parse Controller Programs
- Parse Robot BCD Info
- Parse AS reals
- Parse AS trans
- Parse AS joints
- Parse AS strings
- Parse Spot Weld Info
- Parse MIG Weld Info
Development
$ git clone https://github.com/rassweiler/kawasaki-as-parser.gitchange to the desired branch and install the dependencies using yarn:
$ yarnFor convenience install the suggested vscode addons.
Before commiting run:
yarn test