formatted-amount
v1.0.11
Published
Component formatting an amount correctly 0-padded with a currency
Downloads
3
Maintainers
Readme
formatted-amount
Installation
npm i formatted-amount --save
Usage
One installed, just require and use the component:
import React from `react`;
import FormattedAmount from 'formatted-amount';
React.render(<FormattedAmount amount={1337} currency={'€'} />, document.querySelector('#main'));
Build
npm run build
Tests
npm test
Examples
Examples are available here : https://jtassin.github.io/formatted-amount/
Contributors
| ---| Julien TASSIN |
License
MIT, see LICENSE for details.