Spaces:
Sleeping
Sleeping
File size: 597 Bytes
df9fdc8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | type SPEC = {
readonly radix: number;
readonly unit: string[];
};
export declare const SPECS: Record<string, SPEC>;
/**
* file size from https://github.com/hustcc/filesize.js
* @param bytes - The number of bytes to convert to human-readable format
* @param fixed - Number of decimal places to display (default: 1)
* @param spec - Size specification to use: "si", "iec", or "jedec" (default: "jedec")
* @returns Human-readable file size string
*/
export declare function filesize(bytes: number, fixed?: number, spec?: string): string;
export {};
//# sourceMappingURL=filesize.d.ts.map |