node-serialport-bindings-cpp/packages/stream
Francis Gulotta 6b85c3d719 chore: rename comName to path (#1859)
We refer to the data as path everywhere but the port info object. This unifies them.

Accessing `comName` will log a warning for one major release and go away afterwards.
2019-05-03 23:20:59 -04:00
..
.npmignore chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
CHANGELOG.md Publish 2019-04-27 10:36:11 -04:00
package.json chore: remove node6 support and upgrade codebase (#1851) 2019-05-01 21:19:29 -04:00
README.md docs: add back the serial port package readme 😅 2019-04-27 10:00:12 -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.