UNPKG

@luminati-io/node-diskusage

Version:

Get total diskspace and free diskspace using bindings around platform specific calls.

10 lines (8 loc) 288 B
type DiskUsage = { available: number; free: number; total: number; } export function check(path: string, callback: (error?: Error, result?: DiskUsage) => void): void; export function check(path: string): Promise<DiskUsage> export function checkSync(path: string): DiskUsage;