Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Gzipping a string with vanilla JavaScript
- function gzip(input) {
- var blob = Utilities.newBlob(input);
- var gzipped = Utilities.gzip(blob);
- return Utilities.base64Encode(gzipped.getBytes());
- }
Add Comment
Please, Sign In to add comment