node-serialport-bindings-cpp/packages/stream
Francis Gulotta 19fb5f8d2a v9.0.1
2020-08-07 21:15:51 -04: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 v9.0.1 2020-08-07 21:15:51 -04:00
package-lock.json v9.0.1 2020-08-07 21:15:51 -04:00
package.json v9.0.1 2020-08-07 21:15:51 -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.