UNPKG

usb-mountpoint

Version:

Library for listing USB mass storage devices, their serial numbers and mount points

21 lines (20 loc) 682 B
import { Implementation, USBDevice } from '../interfaces'; interface WmiObject { DeviceID: string; } interface DiskDrive extends WmiObject { SerialNumber: string; } interface DiskPartition extends WmiObject { } interface LogicalDisk extends WmiObject { } export declare class WindowsImplementation implements Implementation { listDevices(): Promise<USBDevice[]>; protected getDrives(): Promise<DiskDrive[]>; protected getPartitions(deviceId: string): Promise<DiskPartition[]>; protected getDisks(deviceId: string): Promise<LogicalDisk[]>; protected wmic(command: string): Promise<string>; protected parse<T>(data: string): Promise<T[]>; } export {};