-
-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Documentation Is:
- Missing
- Needed
- Confusing
- Not Sure?
Please Explain in Detail...
The Brotli examples in the README do not correctly set the compressionOptions. The BROTLI_PARAM_QUALITY parameter is the equivalent to zlib's level option in terms of functionality, but not naming.
Your Proposal for Changes
- Revise the examples to set the Brotli parameters correctly.
const zlib = require('zlib');
...
compressionOptions: {
params: {
[zlib.constants.BROTLI_PARAM_QUALITY]: 11
}
}-
Update the note to be more clear about
BROTLI_PARAM_QUALITYbeing functionally equivalent tolevel, but not syntactically. -
Update note regarding Node version as Brotli native support was backported to Node 10.16.