node-serialport-bindings-cpp/packages/stream
Francis Gulotta ffcc25d90a
chore: update org/repo urls (#1879)
- update http links
- update broken doc links
- update current roadmap
- update badges
- update package.json’s
2019-05-25 22:17:57 -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 chore: remove node6 support and upgrade codebase (#1851) 2019-05-01 21:19:29 -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.