1.0.3 • Published 1 year ago

aero-win-usb-detection v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

aero-win-usb-detection

aero-win-usb-detection allows you to listen for attach/detach events of USB devices and get device path and label.

Install

npm i aero-win-usb-detection

Usage

import UsbEventsContorller from "aero-win-usb-detection";

var usbController = new UsbEventsContorller();

usbController.startListening();

usbController.on("attach", (device) => {
  console.log(device);
});

usbController.on("detach", (device) => {
  console.log(device);
});

// To stop listening
// usbController.stopListening();
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago