node-serialport-bindings-cpp/packages/stream
Francis Gulotta afbc4312fc
feat: add eslint mocha (#1922)
I committed an exclusive test, that shouldn’t happen.
2019-08-26 22:10:26 -04:00
..
.npmignore chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
CHANGELOG.md chore: update org/repo urls (#1879) 2019-05-25 22:17:57 -04:00
package.json chore: update org/repo urls (#1879) 2019-05-25 22:17:57 -04:00
README.md chore: update org/repo urls (#1879) 2019-05-25 22:17:57 -04:00
stream.js chore: rename comName to path (#1859) 2019-05-03 23:20:59 -04:00
stream.test.js feat: add eslint mocha (#1922) 2019-08-26 22:10:26 -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.