ASCII85 a.k.a. Base85 implementation in JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
ascii85.js

README.md

ascii85.js

Introduction

ASCII85 a.k.a. Base85 implementation in JavaScript

Methods

encode(string text[, string charset = 'UTF-8'][, bool useEOD = true])

Return ASCII85 encoded string of text being in charset. Optionally enclose returned string to <~ and ~> chars when useEOD is true.

fromByteArray(Array byteArray[, useEOD = true])

Return ASCII85 encoded string of byteArray. Optionally enclose returned string to <~ and ~> chars when useEOD is true.

decode(string text[, string charset = 'UTF-8'])

Return string in charset of ASCII85 encoded text.

toByteArray(string text)

Return Uint8Array of ASCII85 encoded text.

License

MIT