UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

8 lines (6 loc) 255 B
interface FormatBytesOptions { numberOfDecimals: number; } declare const formatBytes: (bytes: number, options?: Partial<FormatBytesOptions>) => string; declare const formatDecimals: (bytes?: number) => number; export { formatBytes, formatDecimals };