1.2.0 • Published 2 years ago

country-codes-multi-language v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Country Codes 🌍

find countries by their codes in multiple languages

Supported codes:

  • ISO 3166 (2 digits)

Supported languages:

  • de - German
  • en - English

Installation

npm install country-codes-multi-language

Usage

const lookup = require('country-codes-multi-language')

const code = 'CH'
const language = 'de'

const country = lookup.searchCode(code, language);

function will return either a null or an country object:

{ name: 'Schweiz', code: 'CH' }