Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diasbruno/format-currency
Format currency to string.
https://github.com/diasbruno/format-currency
Last synced: 9 days ago
JSON representation
Format currency to string.
- Host: GitHub
- URL: https://github.com/diasbruno/format-currency
- Owner: diasbruno
- License: mit
- Created: 2019-08-13T16:18:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T18:24:56.000Z (almost 2 years ago)
- Last Synced: 2023-03-15T09:40:32.695Z (over 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# format-currency
a basic currency formatter.
## api
- value : the value to format.
- decimalChar : punctuation for decimal.
- fractionChar : punctuation for fration places.
- decimalPlaces : number of decimal places.```
formatCurrency(
value : String | Number,
decimalChar : Char,
fractionChar : Char,
decimalPlaces : Number
) : String
```## license
MIT (see license.md)