3.0.0 • Published 3 years ago

@rassweiler/kawasaki-as-parser v3.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

kawasaki-as-parser

Build Status Github Tag StackOverflow GitHub license npm version

Node module for parsing kawasaki as backup files.

Usage

NPM

$ npm install @rassweiler/kawasaki-as-parser

Yarn

$ yarn add @rassweiler/kawasaki-as-parser

Importing

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.git

change to the desired branch and install the dependencies using yarn:

$ yarn

For convenience install the suggested vscode addons.

Before commiting run:

yarn test