@scalar/api-client
Version:
the open source API testing client
12 lines • 429 B
TypeScript
/**
* Formats bytes to a more readable format
*
* @see https://stackoverflow.com/a/18650828/1624255
*/
export declare const formatBytes: (bytes: number, decimals?: number) => string;
/**
* Formats milliseconds to seconds and appends an "s" if more than one second
* else returns ms appended to the number
*/
export declare const formatMs: (ms: number, decimals?: number) => string;
//# sourceMappingURL=formatters.d.ts.map