png-compressor
    Preparing search index...

    Function deflate

    • deflate(data[, options]) -> Uint8Array

      • data (Uint8Array|ArrayBuffer|String): input data to compress.
      • options (Object): zlib deflate options.

      Compress data with deflate algorithm and options.

      Supported options are:

      • level
      • windowBits
      • memLevel
      • strategy
      • dictionary

      http://zlib.net/manual.html#Advanced for more information on these.

      Sugar (options):

      • raw (Boolean) - say that we work with raw stream, if you don't wish to specify negative windowBits implicitly.
      const pako = require('pako')
      const data = new Uint8Array([1,2,3,4,5,6,7,8,9]);

      console.log(pako.deflate(data));

      Parameters

      • input: any
      • options: {} = {}

      Returns Uint8Array