-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.
Description
Affected URL(s)
https://nodejs.org/api/zlib.html
Description of the problem
Node.js internally supports the Zstandard compression parameter ZSTD_c_strategy
and exposes related constants (such as ZSTD_fast
, ZSTD_btultra
, etc.) via zlib.constants
. However, these are not currently documented in the nodejs API documentation for the zlib module.
While zstd support is currently marked as experimental, documenting these parameters and constants would make it easier for developers to explore and use the feature.
Also, adding an example of using such a feature would be beneficial:
const compressed = zlib.zstdCompress(input, {
params: {
[zlib.constants.ZSTD_c_strategy]: zlib.constants.ZSTD_btultra,
}
},() => ....);
Documenting these constants and parameters would align with other existing documented Zstd options (e.g., ZSTD_c_compressionLevel
) and improve developer experience.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.