UNPKG

num-beauty

Version:

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

3 lines (2 loc) 175 B
import { type SupportedLocale } from '../locales'; export declare function formatNumber(num: number, decimals: number, locale: SupportedLocale, stripZeros?: boolean): string;