Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/countries/mod.ts>CountryInfoProvider

🦕 module which provides information about countries on earth + mars
Latest
class CountryInfoProvider
import { CountryInfoProvider } from "https://deno.land/x/countries@v1.2.0/mod.ts";

Static Methods

doCountryNamesMatch(countryName1: string, countryName2: string): boolean
getCountryCodeFromCountryName(countryName: string): string | undefined
getCountryFromAlternativeName(countryName: string): ICountry | undefined
getCountryFromCode(countryCode: string | number): ICountry | undefined
getCountryFromName(countryName: string): ICountry | undefined
getCountryNameFromCountryCode(countryCode: string): string | undefined