Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.04 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.04 KB

grblhal-parser

This project inspired by grbl-parser, it was used as a template and modified to support types and extra grblHAL features

Grbl and GrblHAL machine parser library written in typescript

Provides an event-based callbacks to parse any strings grbl may output.

Supports Grbl 0.9, 1.0, 1.1 and GrblHAL 1.1 (untested with grbl 0.8)

Installation

npm install grblhal-parser --save

Usage

const { GrblHALParser } = require("grblhal-parser")

ES6

import { GrblHALParser } from 'grblhal-parser';

const parser = new GrblHALParser();

parser.on('alarm', data => {});
parser.on('status', data => {});
parser.on('ok', data => {});
parser.on('all', data => {});

parser.parseData('G0');
parser.parseData('ok');
parser.parseData('error: 5');

Other links