Compress data with deflate algorithm and options. See DeflateOptions for the list of supported options.
data
options
import { deflate } from 'pako'const data = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8, 9])console.log(deflate(data)) Copy
import { deflate } from 'pako'const data = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8, 9])console.log(deflate(data))
Compress
datawith deflate algorithm andoptions. See DeflateOptions for the list of supported options.