@serialport/stream
TypeScript icon, indicating that this package has built-in type declarations

12.0.0 • Public • Published

@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.

/@serialport/stream/

    Package Sidebar

    Install

    npm i @serialport/stream

    Weekly Downloads

    56,173

    Version

    12.0.0

    License

    MIT

    Unpacked Size

    29.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • serialport-release-bot
    • reconbot
    • hipsterbrown