yaspm

0.0.2 • Public • Published

yaspm

npm install --save yaspm

Heavily inspired by serialport-manager and node-grbl, does a little part of it being portable to node-webkit.

Example Usage

Machines
  .search()
  .on('validdevice', function (device) {
    device
      .connect()
      .on('connect', handleConnect.bind(null, device))
      .on('disconnect', handleDisconnect.bind(null, device));
  })
  .on('removeddevice', function (pnpId) {
    console.log('Just removed: ' + pnpId);
  });

pretty simple 😺

Readme

Keywords

none

Package Sidebar

Install

npm i yaspm

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • cirocosta