Skip to content

franzos/rust_iso3166-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust_iso3166-ts

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.

Usage

  • countries() - Returns a list of countries
  • country_by_alpha2(alpha2: &str) - Returns a country by its alpha2 code
  • subdivisions() - Returns a list of subdivisions
  • subdivision_by_alpha2(alpha2: &str) - Returns a subdivision by its alpha2 code
  • subdivisions_by_country(alpha2: &str) - Returns a list of subdivisions by country alpha2 code
  • countries_and_subdivisions() - Returns a list of countries and their subdivisions

Update from source

node download.js

About

ISO 3166-1 and ISO 3166-2 country and subdivision codes

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors