serialharbor

0.0.2 • Public • Published

Serial Harbor

A small wrapper around SerialPort which emits events when serial devices are connected or disconnected.

Install

npm install serialharbor

Usage

 
var serialharbor = require("serialharbor");
 
var ports = serialharbor("1s");
 
ports.on("connect", function(port){
    console.log("Connected", port);
});
 
ports.on("disconnect", function(port){
    console.log("Disconnected", port);
});
 
// stop again
ports.stop();
 
 

Licence

Public Domain

Readme

Keywords

Package Sidebar

Install

npm i serialharbor

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • yetzt