UNPKG

node-drivelist

Version:

A TypeScript library to list connected drives, their usage (total, used, available space), and mount points. Supports Windows, Linux, and macOS (via POSIX compatibility). No node-gyp required.

4 lines (3 loc) 219 B
import { DriveDataInterface } from "./Interfaces"; export declare const getDriveList: () => Promise<DriveDataInterface[]>; export declare const getDriveByName: (driveName: string) => Promise<DriveDataInterface | null>;