@candis/currencies
v1.1.2
Published
[![CircleCI](https://circleci.com/gh/CandisIO/currencies/tree/master.svg?style=svg&circle-token=e930df31745e32495cb28a1cd3cbe94cfaae4870)](https://circleci.com/gh/CandisIO/currencies/tree/master) [![Maintainability](https://api.codeclimate.com/v1/badges/7
Downloads
67
Keywords
Readme
Currencies
This package includes a list of currencies and their respective formatting, based on existing standards including ISO 4217. The code is taken from CandisIO/candis because we haven't published a shared npm package yet.
Content
The currency entries in the JSON file include the following field structure (some of the listed fields are optional):
{
"USD": {
"symbol": "US$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars",
"money_format": "${{amount}}",
"money_with_currency_format": "${{amount}} USD",
"decimal": ".",
"thousand": ","
}
}
How to publish a new version of this package
Please follow the instructions on the wiki