@candis/currencies
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

CircleCI Maintainability

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

Readme

Keywords

none

Package Sidebar

Install

npm i @candis/currencies

Weekly Downloads

1

Version

1.1.2

License

none

Unpacked Size

2.43 kB

Total Files

3

Last publish

Collaborators

  • cmrhdl
  • hhrayr
  • pritoj_candis
  • larsboehnke