Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdamoc/elm-hashids
Elm port of the Hashids library.
https://github.com/pdamoc/elm-hashids
Last synced: 3 months ago
JSON representation
Elm port of the Hashids library.
- Host: GitHub
- URL: https://github.com/pdamoc/elm-hashids
- Owner: pdamoc
- License: mit
- Created: 2016-04-05T07:07:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-18T13:33:55.000Z (over 3 years ago)
- Last Synced: 2024-10-01T09:19:43.382Z (3 months ago)
- Language: Elm
- Homepage:
- Size: 78.1 KB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-hashids
Elm port of the Hashids library. http://hashids.org
##### Install:
```
elm install pdamoc/elm-hashids
```##### Hello, World:
```elm
import Html exposing (..)
import Hashids exposing (..)hashids = hashidsSimple "this is my salt"
ids = encodeList hashids [1, 2, 3]
numbers = decode hashids idsmain : Html
main =
div []
[ text ids
, br [] []
, text <| Debug.toString numbers
]
```