node-serialport-bindings-cpp/packages/stream
Francis Gulotta 100ba6fb5a
v10.0.0
2021-12-11 17:18:23 -05:00
..
lib docs: Fix doc param description error (#2106) 2020-07-16 22:57:52 -04:00
.npmignore fix: npmignore should ignore .DS_Store files (#1954) 2019-10-03 20:37:13 -04:00
CHANGELOG.md v10.0.0 2021-12-11 17:18:23 -05:00
package-lock.json v10.0.0 2021-12-11 17:18:23 -05:00
package.json v10.0.0 2021-12-11 17:18:23 -05:00
README.md chore: update org/repo urls (#1879) 2019-05-25 22:17:57 -04: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.