tus-js-client-olalonde
Version:
A pure JavaScript client for the tus resumable upload protocol
15 lines (12 loc) • 309 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.encode = encode;
/* global: window */
var _window = window;
var btoa = _window.btoa;
function encode(data) {
return btoa(unescape(encodeURIComponent(data)));
}
var isSupported = exports.isSupported = "btoa" in window;