UNPKG

string-remove-thousand-separators

Version:

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

12 lines (10 loc) 323 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 { defaults, remSep, version }; export type { Opts };