country-currency

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i country-currency

    Weekly Downloads

    1,343

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    13.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • thomas-jensen