unformat-money-js
Version:
Zero dependency tiny JavaScript library (532 bytes) by CurrencyRate.today, providing simple way removes all formatting/cruft and returns the raw float value.
18 lines (17 loc) • 457 B
TypeScript
/*!
* unformat-money-js v1.0.7
* (c) 2025 Yurii Derevych
* Released under the BSD-2-Clause License.
*/
export interface UnFormatMoneyOptions {
decimalPoint?: string;
accounting?: boolean;
}
export declare class UnFormatMoney {
private options?;
version: string;
private defaults;
constructor(options?: UnFormatMoneyOptions);
private escapeRegExp;
un: (value: string | number, options?: UnFormatMoneyOptions) => number;
}