@akibrk/currency
v1.0.1
Published
Utility functions for dealing with currency formatting.
Downloads
5
Readme
Currency
Utility functions for dealing with currency formatting.
Release Notes
Usage
import { Currency } from '../index';
const amount = '23.2333';
console.log(Currency.stringToCents(amount));
console.log(Currency.normalize(amount));
console.log(Currency.formatWithSymbol(amount, 'USD'));