UNPKG

@transloadit/prettier-bytes

Version:

> Even though this module is publicly accessible, we do not recommend using it in projects outside of [Transloadit](https://transloadit.com). We won't make any guarantees about its workings and can change things at any time, we won't adhere strictly to Se

5 lines (4 loc) 214 B
declare const units: readonly ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; export type Unit = (typeof units)[number]; export declare function prettierBytes(input: number, unit?: Unit): string; export {};