UNPKG

string-remove-thousand-separators

Version:

Detects and removes thousand separators (dot/comma/quote/space) from string-type digits

11 lines (9 loc) 312 B
declare const version: string; interface Opts { removeThousandSeparatorsFromNumbers: boolean; padSingleDecimalPlaceNumbers: boolean; forceUKStyle: boolean; } declare const defaults: Opts; declare function remSep(str: string, opts?: Partial<Opts>): string; export { type Opts, defaults, remSep, version };