currency-commas-ts
v1.0.0
Published
TypeScript utilities to format numbers into currency strings with commas and to remove commas.
Maintainers
Readme
Currency Commas TS
TypeScript utilities to format numbers as currency strings with commas and to remove commas.
Installation
npm install currency-commas-tsUsage
import { currencyConverter, currencyCommaRemover } from 'currency-commas-ts';
console.log(currencyConverter(1234567.89)); // "1,234,567.89"
console.log(currencyCommaRemover("1,234,567.89")); // "1234567.89"License
MIT
