node-serialport-bindings-cpp/packages/stream
Francis Gulotta d59fe44fcc Publish
- @serialport/binding-abstract@2.0.2
 - @serialport/binding-mock@2.0.2
 - @serialport/bindings@2.0.3
 - @serialport/list@1.1.0
 - @serialport/parser-byte-length@2.0.2
 - @serialport/parser-cctalk@2.0.2
 - @serialport/parser-delimiter@2.0.2
 - @serialport/parser-readline@2.0.2
 - @serialport/parser-ready@2.0.2
 - @serialport/parser-regex@2.0.2
 - @serialport/parser-slip-encoder@2.0.2
 - @serialport/repl@1.1.0
 - serialport@7.1.0
 - @serialport/stream@2.0.2
 - @serialport/terminal@1.1.0
 - @serialport/website@null
2018-11-26 21:54:51 -05:00
..
.npmignore chore: split out more packages (#1611) 2018-08-25 09:31:34 -07:00
CHANGELOG.md Publish 2018-11-26 21:54:51 -05:00
package.json Publish 2018-11-26 21:54:51 -05: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 test(packages/bindings#write): do not call native bindings for empty buffers 2018-11-05 12:35:29 -05: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')