monty5811/elm-bible - version: 2.0.2

for more information visit the package's GitHub page

Package contains the following modules:

elm-bible

Build Status

Parse and format Bible references in Elm.

Features

The following reference formats can be parsed:

Examples


(fromString "Gen 1:1" |> Result.map format)
     == Ok "Genesis 1:1" 

(fromString "Gen 1:1 - Rev 5") |> Result.map format)
    == Ok "Genesis 1:1 - Revelation 5:14" 

(fromString "Gen 1:1 - Rev 5") |> Result.map encode) 
    == Ok {start = 1001001, end = 66005014}

Contributing

Contributions welcome, please open an issue to get started.