New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

grbl-stream

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grbl-stream

Stream based Grbl command parser and serializer

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

grbl-stream

Stream based Grbl command parser and serializer. At the moment only supports a subset of commands. Tested with Grbl version 1.1f.

npm install grbl-stream

Usage

The protocol stream can be used with any stream based transport, e.g. using with serialport.

const SerialPort = require('serialport')
const { GrblStream } = require('grbl-stream')

const port = new SerialPort('/dev/tty.usbmodem', { baudRate: 115200 })
const grbl = new GrblStream()

grbl.pipe(port).pipe(grbl)
  .on('command', cmd => console.log('>', cmd))
  .on('message', msg => console.log('<', msg))

console.log('status', await grbl.status())
console.log('help', await grbl.help())
console.log('settings', await grbl.settings())

await grbl.runHomingCycle()
await grbl.killAlarmLock()
await grbl.metricCoordinates()
await grbl.incrementalPositioning()
await grbl.position({ x: -100, y: -100 })

Keywords

grbl

FAQs

Package last updated on 15 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts