pako - v3.0.1
    Preparing search index...

    Function deflate

    • Compress data with deflate algorithm and options. See DeflateOptions for the list of supported options.

      Parameters

      • input: string | ArrayBuffer | Uint8Array<ArrayBufferLike>
      • options: DeflateOptions = {}

      Returns Uint8Array<ArrayBuffer>

      import { deflate } from 'pako'

      const data = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8, 9])

      console.log(deflate(data))