An open API service indexing awesome lists of open source software.

https://github.com/chadtech/elm-us-state-abbreviations

US State abbreviations and helper functions for those
https://github.com/chadtech/elm-us-state-abbreviations

Last synced: 10 months ago
JSON representation

US State abbreviations and helper functions for those

Awesome Lists containing this project

README

          

# Elm US State Abbreviations

A simple Elm package for US State abbreviations.

```elm
import UsStates exposing (Abbreviation(..))

UsStates.fromString : String -> Maybe Abbreviation
UsStates.toString : Abbreviation -> String

UsStates.fromString " arizona" == Just AZ -- True
UsStates.toString AZ == "arizona" -- True

UsStates.all == [ AL, AK, AZ, AR, CA, ... ]
```