Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/us-states
https://github.com/dustinspecker/us-states
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dustinspecker/us-states
- Owner: dustinspecker
- License: mit
- Created: 2016-03-03T00:14:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-15T21:56:05.000Z (over 8 years ago)
- Last Synced: 2023-08-08T20:39:09.209Z (over 1 year ago)
- Language: Elm
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# UsStates [![Build Status](https://travis-ci.org/dustinspecker/us-states.svg?branch=master)](https://travis-ci.org/dustinspecker/us-states) [![Elm Docs](https://img.shields.io/badge/elm-docs-brightgreen.svg)](http://package.elm-lang.org/packages/dustinspecker/us-states/latest)
> Get US state name from an abbrevation and vice versa.## Install
```bash
elm-package install dustinspecker/us-states
```## Usage
```elm
module AwesomeModule whereimport UsStates
UsStates.fromAbbr "zZ" -- Nothing
UsStates.fromAbbr "mo" -- Just "Missouri"
UsStates.fromAbbr "RI" -- Just "Rhode Island"UsStates.toAbbr "Igloo" -- Nothing
UsStates.toAbbr "Missouri" -- Just "MO"
UsStates.toAbbr "Rhode Island" -- Just "RI"
```## License
MIT © [Dustin Specker](https://github.com/dustinspecker)