radin-scale-api/node_modules/@serialport/stream
mehranz 0eb8fbcf69 update 2026-02-16 15:55:07 +03:30
..
dist update 2026-02-16 15:55:07 +03:30
node_modules update 2026-02-16 15:55:07 +03:30
LICENSE update 2026-02-16 15:55:07 +03:30
README.md update 2026-02-16 15:55:07 +03:30
package.json update 2026-02-16 15:55:07 +03:30

README.md

@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 { SerialPortStream } = require('@serialport/stream')
const { autoDetect } = require('@serialport/bindings-cpp')
const binding = autoDetect()
const port = new SerialPortStream({ binding, path: '/dev/ttyay', baudRate: 9600 })

Learn more at our stream documentation page.