node-serialport-bindings-cpp/packages/stream
2020-08-07 21:11:09 -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.0 2020-05-10 01:21:17 -04:00
package-lock.json chore: update package-lock.jsons even though we don’t really use them (#2123) 2020-08-07 21:11:09 -04:00
package.json v9.0.0 2020-05-10 01:21:17 -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.