Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coinify

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinify

Get currency ISO 4217 data

  • 3.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
752
increased by4.3%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 02 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc