Skip to content
Elm
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example elm-format-0.19 0.8.0 Oct 6, 2018
src
.gitignore v1.0.0 Aug 27, 2017
LICENSE License Oct 6, 2018
README.md
elm.json v1.0.4 Aug 16, 2019

README.md

elm-countries

A searchable ISO 3166-1 based list of country names, codes and emoji flags

The library is intended to be used qualified (i.e. Countries.search, Countries.all).

> import Countries
> Countries.fromCode "AU"
Just { name = "Australia", code = "AU", flag = "🇦🇺" }
    : Maybe.Maybe Countries.Country

Note: Country names do change! It's best to use the code as a key if you are using and storing country details outside of this library.

Example

There's an example with a country picker in the example directory.

cd example
elm-reactor

Note You must run elm-reactor from within the example directory to use the correct package dependencies.

You can’t perform that action at this time.