Huge News!Announcing our $40M Series B led by Abstract Ventures.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

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
243K
decreased by-1.08%
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

FAQs

Package last updated on 02 Oct 2013

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