Airbreaks-Low-Power/Programming/Javascript/node_modules/@serialport/stream
2023-12-19 18:30:36 -06:00
..
lib First Commit 2023-12-19 18:30:36 -06:00
CHANGELOG.md First Commit 2023-12-19 18:30:36 -06:00
LICENSE First Commit 2023-12-19 18:30:36 -06:00
package.json First Commit 2023-12-19 18:30:36 -06:00
README.md First Commit 2023-12-19 18:30:36 -06:00

@serialport/Stream

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

You'd use this if you want to keep your package size down by requiring only the parts of serialport that you want to use. It is used internally in the serialport package.

This is how you use it.


const SerialPort = require('@serialport/stream')
const Binding = require('@serialport/bindings')
SerialPort.Binding = Binding
const port = new Serialport('/dev/ttyay')

Learn more at our stream documentation page.