UNPKG

prefix-si

Version:

SI, IEC, BS1852 compatible number formatter

11 lines (10 loc) 285 B
export declare function prefix(value: number, unit?: string, options?: PrefixOptions): string; export interface PrefixOptions { binary?: boolean; fixed?: number; precision?: number; round?: number; spacer?: string; decimalMark?: string; bs1852?: boolean; }