UNPKG

ts-prime

Version:

A utility library for JavaScript and Typescript.

11 lines 318 B
/** * Format bytes to human readable format * @param fn - target function * @signature * P.formatBytes(bytes) * @example * P.formatBytes(12457150) // => 11.88MB * @category Utility, Pipe */ export declare function formatBytes(bytes: number, decimals?: number): string; //# sourceMappingURL=bytes.d.ts.map