UNPKG

aero-win-usb-detection

Version:

Listen to USB devices for attach/detach and get drive path and label (Windows only)

11 lines (10 loc) 302 B
/// <reference types="node" /> import EventEmitter from "events"; import edge from "edge-js"; export default class UsbEventsContorller extends EventEmitter { drivesCache: {}; dll: edge.Func<unknown, unknown>; constructor(); startListening(): Promise<void>; stopListening(): void; }