Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)