Created
February 22, 2020 14:42
-
-
Save Farenheith/720ce51c500503d56f6dd6d023bfae86 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { Readable } from 'stream'; | |
import { createGzip } from 'zlib'; | |
export function streamExample(stream: Readable) { | |
return stream | |
.pipe(createGzip()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment