@optns/countries
v0.1.3
Published
A Map of Countries
Downloads
3
Readme
Countries
From @defaults-net/options/countries.
import { countries } from "@optns/countries";
countries.get("US"); // United States of America
Object.fromEntries(countries); // {AD: "Andorra", AE: "United Arab Emirates", AF: "Afghanistan", ...}
Array.from(countries); // [["AD", "Andorra"], ["AE", "United Arab Emirates"], ["AF", "Afghanistan"], ...]
[...countries.values()]; // Andorra, United Arab Emirates, Afghanistan, ...
[...countries.keys()]; // AD, AE, AF, ...