grblhal-parser
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i grblhal-parser

Weekly Downloads

0

Version

1.1.7

License

ISC

Unpacked Size

126 kB

Total Files

28

Last publish

Collaborators

  • hamoudy99