This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
We were not able to find the expected elm-package.json file at this tag.
Tag 2.0.0
Committed At 2018-12-11 17:55:13 UTC

Modules

    README

    elm-bible

    Build Status

    Parse and format Bible references in Elm.

    Features

    • Parse a reference from a string
    • Nicely format a reference to a string
    • Convert a reference to an encoded representation for sorting/comparing/storage

    The following reference formats can be parsed:

    • Genesis 1
    • Genesis 1:1
    • Genesis 1:1-20
    • Genesis 1:20-2:24
    • Genesis 1-5
    • Genesis 1 - Exodus 5
    • Genesis 1:1 - Exodus 5:20
    • Genesis 1:1 - Exodus 5
    • Genesis 1 - Exodus 5:20

    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.