node-serialport-bindings-cpp/packages/stream
2018-09-15 05:02:59 -04:00
..
.npmignore chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
CHANGELOG.md Publish 2018-08-28 23:28:55 -04:00
package.json chore(package): update debug to version 4.0.1 (#1661) 2018-09-15 01:45:54 -04:00
README.md chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
stream.js chore: linting - a much more reasonable line length 2018-09-15 05:02:59 -04:00
stream.test.js chore: linting - a much more reasonable line length 2018-09-15 05:02:59 -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')