Closed ai closed 5 years ago
node-zopfli returns Promise on missed callback, so to be compatible with its API we need to do the same
node-zopfli
Promise
callback
https://github.com/pierreinglebert/node-zopfli#api
There are already *Async() versions that returns promises, e.g. gzipAsync(), zlibAsync(), and deflateAsync().
*Async()
gzipAsync()
zlibAsync()
deflateAsync()
node-zopfli
returnsPromise
on missedcallback
, so to be compatible with its API we need to do the samehttps://github.com/pierreinglebert/node-zopfli#api