-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I am wondering if possible to use this library as a stream like node-zopfli. I've found only callback and async methods, it would be great to add methods which implements stream interface.
node-zopfli
const zopfli = require('node-zopfli');
fs.createReadStream('file.js')
.pipe(zopfli.createGzip(options))
.pipe(fs.createWriteStream('file.js.gz'));@gfx/zopfli (hypothetical)
const zopfli = require('@gfx/zopfli'); // or const { createGzip } = require('@gfx/zopfli');
fs.createReadStream('file.js')
.pipe(zopfli.createGzip(options)) // or .pipe(createGzip(options))
.pipe(fs.createWriteStream('file.js.gz'));monochromer
Metadata
Metadata
Assignees
Labels
No labels