How to use the zlib.deflate function in zlib

To help you get started, we’ve selected a few zlib 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 egret-labs / egret-core / tools / tasks / MergeJSONPlugin.ts View on Github external
return new Promise((resolve, reject) => {

        zlib.deflate(input, (err, buffer) => {
            if (!err) {
                resolve(buffer)
            } else {
                reject(err)
            }
        });
    })

zlib

Simple, synchronous deflate/inflate for buffers

Unrecognized
Latest version published 13 years ago

Package Health Score

56 / 100
Full package analysis