iso3166-de
v1.0.1
Published
> The iso3166de module provides german country names with iso3166 country codes and country tlds.
Readme
README
The iso3166de module provides german country names with iso3166 country codes and country tlds.
Usage
import iso3166de from "iso3166de"
const austria = iso3166de.get("at") // get by alpha-2 code
// {
// name: 'Österreich',
// alpha2: 'AT',
// alpha3: 'AUT',
// numeric: '040',
// tld: '.at'
// }
const switzerland = iso3166de.get(".ch") // get by TLD
// {
// name: 'Schweiz',
// alpha2: 'CH',
// alpha3: 'CHE',
// numeric: '756',
// tld: '.ch'
// }
const germany = iso3166de.get("deu") // get by alpha-3 code
// {
// name: 'Deutschland',
// alpha2: 'DE',
// alpha3: 'DEU',
// numeric: '276',
// tld: '.de'
// }
const america = iso3166de.get("840") // get by numeric code
// {
// name: 'Vereinigte Staaten',
// alpha2: 'US',
// alpha3: 'USA',
// numeric: '840',
// tld: '.us'
// }
const egypt = iso3166de.get("ägypten") // get by country name (case-insensitive)
// {
// name: 'Ägypten',
// alpha2: 'EG',
// alpha3: 'EGY',
// numeric: '818',
// tld: '.eg'
// }
