3.0.4 • Published 1 year ago

coinify v3.0.4

Weekly downloads
483
License
MIT
Repository
github
Last release
1 year ago

Coinify - Get currency ISO 4217 data

npm i coinify

Usage

Import the whole library

import coinify from 'coinify'

coinify.list() // List all national currencies
coinify.listNaturals() // List natural currencies
coinify.listSpecials() // List special currencies
coinify.listAll() // List all currencies
coinify.decimals('USD') // Get decimals of currency
coinify.name('USD') // Get name of currency
coinify.rounding('USD') // Get rounding of currency
coinify.symbol('USD') // Get symbol of currency
coinify.currency('USD') // Get the whole currency object

Import part of the library

import { listNaturals, decimals, symbol } from 'coinify'

listNaturals() // List natural currencies
decimals('USD') // Get decimals of currency
symbol('USD') // Get symbol of currency

The currency object

{
  iso: 'USD',
  symbol: '$',
  name: 'US Dollar',
  symbol_native: '$',
  decimal_digits: 2,
  rounding: 0,
  name_plural: 'US dollar'
}

Disclaimer

Software is delivered as is, with no guarantees

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago