šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

currency-codes

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-codes

Lookup currency codes based on ISO 4217

2.2.0
latest
Source
npm
Version published
Weekly downloads
479K
10.52%
Maintainers
1
Weekly downloads
Ā 
Created

What is currency-codes?

The currency-codes npm package provides a comprehensive list of currency codes and related information based on the ISO 4217 standard. It allows users to look up currency codes, names, and other related data.

What are currency-codes's main functionalities?

Get currency by code

This feature allows you to retrieve information about a currency using its code. For example, 'USD' will return details about the US Dollar.

const currencyCodes = require('currency-codes');
const currency = currencyCodes.code('USD');
console.log(currency);

Get currency by number

This feature allows you to retrieve information about a currency using its numeric code. For example, '840' will return details about the US Dollar.

const currencyCodes = require('currency-codes');
const currency = currencyCodes.number('840');
console.log(currency);

Get currency by countries

This feature allows you to retrieve a list of currencies used in a specific country. For example, 'United States' will return the US Dollar.

const currencyCodes = require('currency-codes');
const currencies = currencyCodes.countries('United States');
console.log(currencies);

Get all currency codes

This feature allows you to retrieve a list of all currency codes available in the package.

const currencyCodes = require('currency-codes');
const allCurrencies = currencyCodes.codes();
console.log(allCurrencies);

Other packages similar to currency-codes

Keywords

iso4217

FAQs

Package last updated on 23 Oct 2024

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