Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function (data) {
return pako.deflateRaw(data, { level: 9, to: 'string' })
}
module.exports = function (data) {
return pako.deflateRaw(data, { level: 9, to: 'string' })
}
module.exports.encode = function (text) {
var data = utf8bytes(text)
var deflated = pakoDeflate.deflateRaw(data, { level: 9, to: 'string' })
return encode64.encode(deflated)
}