1.0.1 • Published 5 years ago

country-currency v1.0.1

Weekly downloads
984
License
MIT
Repository
github
Last release
5 years ago

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