Socket
Socket
Sign inDemoInstall

country-currency

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    country-currency

A mapping of countries and their most used currency


Version published
Weekly downloads
976
decreased by-33.15%
Maintainers
1
Install size
13.1 kB
Created
Weekly downloads
 

Readme

Source

A map of countries' currency

A map of all ISO 3166-1 (country) alpha2 codes to an ISO 4217 currency code.

See also:

const currencies = require('country-currency');

console.log(currencies.map(c => c.country+', '+c.currency));
	// AD, EUR
	// …


// export a Map
byCountry()

const byCountry = currencies.byCountry();

byCountry.has('DK');
	// true

byCountry.get('DK');
	// DKK

FAQs

Last updated on 15 Jun 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc