node-serialport-bindings-cpp/packages/stream
2019-10-03 20:37:13 -04:00
..
lib chore: more testing around stream pool and reading (#1942) 2019-09-24 23:22:06 -04:00
.npmignore fix: npmignore should ignore .DS_Store files (#1954) 2019-10-03 20:37:13 -04:00
CHANGELOG.md v8.0.3 2019-10-02 23:34:00 -04:00
package.json v8.0.3 2019-10-02 23:34:00 -04: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.