This library is supposed to reflect the dataset found in rust_iso3166 for easy matching on frontend and backend. Release version follows the rust_iso3166 library on crates.io/crates/rust_iso3166.
countries()- Returns a list of countriescountry_by_alpha2(alpha2: &str)- Returns a country by its alpha2 codesubdivisions()- Returns a list of subdivisionssubdivision_by_alpha2(alpha2: &str)- Returns a subdivision by its alpha2 codesubdivisions_by_country(alpha2: &str)- Returns a list of subdivisions by country alpha2 codecountries_and_subdivisions()- Returns a list of countries and their subdivisions
node download.js