How to use the pako/lib/deflate.js.deflateRaw function in pako

To help you get started, we’ve selected a few pako examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nhn / tui.editor / api / latest / lib / plantuml-encoder / dist / plantuml-encoder.js View on Github external
module.exports = function (data) {
  return pako.deflateRaw(data, { level: 9, to: 'string' })
}
github markushedvall / plantuml-encoder / dist / plantuml-encoder.js View on Github external
module.exports = function (data) {
  return pako.deflateRaw(data, { level: 9, to: 'string' })
}
github markushedvall / plantuml-encoder / lib / plantuml-encoder.js View on Github external
module.exports.encode = function (text) {
  var data = utf8bytes(text)
  var deflated = pakoDeflate.deflateRaw(data, { level: 9, to: 'string' })
  return encode64.encode(deflated)
}