JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 450
  • Score
    100M100P100Q93272F
  • License MIT

Get currency ISO 4217 data

Package Exports

  • coinify
  • coinify/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coinify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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