uoakinci / ascii85.js

ASCII85 a.k.a. Base85 implementation in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

ASCII85 a.k.a. Base85 implementation in JavaScript

License:MIT License


Languages

Language:JavaScript 100.0%