UNPKG

num-beauty

Version:

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

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