UNPKG

num-beauty

Version:

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

10 lines (9 loc) 320 B
import { type SupportedLocale } from '../locales/index.js'; export interface PercentageOptions { multiply?: boolean; decimals?: number; stripZeros?: boolean; locale?: SupportedLocale; addSpace?: boolean; } export declare function formatPercentage(value: number, options?: PercentageOptions): string;