UNPKG

num-beauty

Version:

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

11 lines (10 loc) 327 B
import { type SupportedLocale } from '../locales'; interface CurrencyOptions { currency: string; decimals?: number; showSymbol?: boolean; showCode?: boolean; stripZeros?: boolean; } export declare function formatCurrency(value: number, locale: SupportedLocale, options: CurrencyOptions): string; export {};