wrap for bower

This commit is contained in:
AJ ONeal 2015-05-19 19:12:53 -06:00
parent 8a31490d58
commit 35611d0f7d
1 changed files with 22 additions and 0 deletions

View File

@ -1,4 +1,6 @@
(function (exports) {
"use strict"; "use strict";
var Unibabel = {};
/*\ /*\
|*| |*|
@ -170,3 +172,23 @@ function strToUTF8Arr (sDOMStr) {
return aBytes; 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));