UNPKG

num-beauty

Version:

An ultra lightweight module for formatting numbers into human-friendly strings

10 lines (9 loc) 305 B
import { type SupportedLocale } from '../locales/index.js'; export interface BytesOptions { binary?: boolean; decimals?: number; stripZeros?: boolean; locale?: SupportedLocale; longFormat?: boolean; } export declare function formatBytes(bytes: number, options?: BytesOptions): string;