Reference · The globe as an SVG string
countryListfunction
Every country the globe draws, with its kuni name and code.
Import it
import { countryList } from "@johnmorrisdotca/chikyu-earth";
Definition
function countryList(): CountryProps[]
Returns
CountryProps[]
A list of English name, Japanese name (or null) and two-letter code (or null where a place has none).
Examples
import { countryList } from "@johnmorrisdotca/chikyu-earth";
console.log(countryList().find((country) => country.alpha2 === "JP"));{ name: 'Japan', ja: '日本', alpha2: 'JP' }What it prints (run when this page was built)