How to use the @serialport/stream.parsers function in @serialport/stream

To help you get started, we’ve selected a few @serialport/stream examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github serialport / node-serialport / packages / serialport / lib / index.js View on Github external
const SerialPort = require('@serialport/stream')
const Binding = require('@serialport/bindings')
const parsers = require('./parsers')

/**
 * @type {AbstractBinding}
 */
SerialPort.Binding = Binding

/**
 * @type {Parsers}
 */
SerialPort.parsers = parsers

module.exports = SerialPort

@serialport/stream

The serialport stream interface. This package requires bindings to work.

MIT
Latest version published 8 months ago

Package Health Score

88 / 100
Full package analysis

Similar packages