Created
October 22, 2018 20:30
-
-
Save mafintosh/ac1554b033425b7e3379813deea88c75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const zlib = require('zlib'); | |
const { Writable } = require('stream'); | |
const ts = zlib.createGzip(); | |
const buf = Buffer.allocUnsafe(1024 * 1024 * 20); | |
ts.on('data', common.mustCall(() => ts.close())); | |
ts.end(buf); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment