UNPKG

millify

Version:

Converts long numbers to pretty, human-readable strings

31 lines (30 loc) 670 B
/** * Options used to configure Millify. */ export interface MillifyOptions { /** * The number of significant figures. */ precision: number; /** * The active browser or server location. A string with a BCP 47 language * tag, or an array of such strings, e.g. "en-US". */ locales?: string | string[]; /** * Convert units to lower case. */ lowercase: boolean; /** * Add a space between the number and the unit. */ space: boolean; /** * A list of units to use. */ units: string[]; } /** * Default options for Millify. */ export declare const defaultOptions: MillifyOptions;