From 35611d0f7d44cd9131ae3098d7098a9194ae3df6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 19 May 2015 19:12:53 -0600 Subject: [PATCH] wrap for bower --- index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/index.js b/index.js index f331e1d..c26f0eb 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,6 @@ +(function (exports) { "use strict"; +var Unibabel = {}; /*\ |*| @@ -170,3 +172,23 @@ function strToUTF8Arr (sDOMStr) { return aBytes; } + +// helpers, not generally useful +Unibabel.uint6ToB64 = uint6ToB64; +Unibabel.b64ToUint6 = b64ToUint6; + +/* Base64 <--> TypedArray <--> UTF-8 */ + +// TypedArray <--> UTF-8 +Unibabel.strToUtf8Arr = strToUTF8Arr; +Unibabel.Utf8ArrToStr = UTF8ArrToStr; +// TypedArray <--> Base64 +Unibabel.base64ToArr = base64EncArr; +Unibabel.arrToBase64 = base64DecToArr; + +if ('undefined' !== typeof module) { + module.exports = exports = Unibabel; +} + +exports.Unibabel = Unibabel; +}('undefined' !== typeof window ? window : exports));