Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/truqu/elm-base64
Elm package for Base64 encoding and decoding
https://github.com/truqu/elm-base64
Last synced: 2 months ago
JSON representation
Elm package for Base64 encoding and decoding
- Host: GitHub
- URL: https://github.com/truqu/elm-base64
- Owner: truqu
- License: mit
- Created: 2015-05-27T14:34:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T08:07:26.000Z (almost 6 years ago)
- Last Synced: 2024-05-21T01:07:07.391Z (5 months ago)
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/truqu/elm-base64/latest
- Size: 81.1 KB
- Stars: 25
- Watchers: 13
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Elm-Base64
========
[![Build Status](https://travis-ci.org/truqu/elm-base64.svg?branch=master)](https://travis-ci.org/truqu/elm-base64)A base 64 encoding and decoding library for Elm.
## Usage
Add the import to the elm module where you want to do some base64 en- or decoding.
```elm
import Base64
```To decode a String use
```elm
decode : String -> Result String String
decode encodedString = Base64.decode encodedString
```To encode a String use
```elm
encode : String -> String
encode regularString = Base64.encode regularString
```