Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```