Package Exports
- currency-to-words
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (currency-to-words) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Currency To Words
Introduction
Converts Currency Numbers (including decimal points) into words.
Samples
1 --> one dollar
25.1 --> twenty-five dollars and ten cents
0.01 --> zero dollars and one cent
45100 --> forty-five thousand one hundred dollars
Custom currency
- 25.1 --> twenty-five cedis and ten pesewas
Install
npm install currency-to-words --saveUsage
import { CurrencyToWords } from 'currency-to-words'const words = CurrencyToWords(0.01);
const customCurrency = CurrencyToWords(0.01, 'cedi', 'pesewa' );OR
const words = CurrencyToWords('105');
const customCurrency = CurrencyToWords('105', 'cedi', 'pesewa' );TODO
- Supporting other languages
Meisam Malekzadeh