Skip to content

pdamoc/elm-hashids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-hashids

Elm port of the Hashids library. http://hashids.org

Install:
elm install pdamoc/elm-hashids
Hello, World:
import Html exposing (..)
import Hashids exposing (..)

hashids = hashidsSimple "this is my salt"
ids = encodeList hashids [1, 2, 3]
numbers = decode hashids ids

main : Html
main = 
  div []
    [ text ids
    , br [] []
    , text <| Debug.toString numbers
    ]

About

Elm port of the Hashids library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages