node:zlib
#Import
import zlib from "nstdlib/zlib";Note
Only the API surface is available. No compression binding, so every stream and one-shot throws ERR_NSTDLIB_NO_BINDING. The 154 exports and all of constants and codes are real and compared against the host builtin.
#Runtime support
| Where it runs | Status | Export coverage | Details |
|---|---|---|---|
| nstd | ⚠️ some support | – | 3/64 of Node's own eligible tests pass under nstd. |
| Browser | ❔ not tested | 100% of Node.js | It imports with the small process shim. 154/154 Node.js exports are available. No module-specific behavior test ran. |
| Node.js (host) | ⚠️ some support | 100% of Node.js | 154/154 exports. |
#Exports (154 of 154)
Each cell shows what happens when code reads an export:
- ✅ Available through every import style. A named error also counts.
- ⚠️ Available through only some import styles.
- ❔ The export exists but has no value.
- ❌ The export does not exist.
- – This environment was not measured.
Show all 154 exports
| Export | Node.js | nstdlib | browser |
|---|---|---|---|
BrotliCompress | ✅ | ✅ | ✅ |
BrotliDecompress | ✅ | ✅ | ✅ |
DEFLATE | ✅ | ✅ | ✅ |
DEFLATERAW | ✅ | ✅ | ✅ |
Deflate | ✅ | ✅ | ✅ |
DeflateRaw | ✅ | ✅ | ✅ |
GUNZIP | ✅ | ✅ | ✅ |
GZIP | ✅ | ✅ | ✅ |
Gunzip | ✅ | ✅ | ✅ |
Gzip | ✅ | ✅ | ✅ |
INFLATE | ✅ | ✅ | ✅ |
INFLATERAW | ✅ | ✅ | ✅ |
Inflate | ✅ | ✅ | ✅ |
InflateRaw | ✅ | ✅ | ✅ |
UNZIP | ✅ | ✅ | ✅ |
Unzip | ✅ | ✅ | ✅ |
ZLIB_VERNUM | ✅ | ✅ | ✅ |
ZSTD_CLEVEL_DEFAULT | ✅ | ✅ | ✅ |
ZSTD_COMPRESS | ✅ | ✅ | ✅ |
ZSTD_DECOMPRESS | ✅ | ✅ | ✅ |
ZSTD_btlazy2 | ✅ | ✅ | ✅ |
ZSTD_btopt | ✅ | ✅ | ✅ |
ZSTD_btultra | ✅ | ✅ | ✅ |
ZSTD_btultra2 | ✅ | ✅ | ✅ |
ZSTD_c_chainLog | ✅ | ✅ | ✅ |
ZSTD_c_checksumFlag | ✅ | ✅ | ✅ |
ZSTD_c_compressionLevel | ✅ | ✅ | ✅ |
ZSTD_c_contentSizeFlag | ✅ | ✅ | ✅ |
ZSTD_c_dictIDFlag | ✅ | ✅ | ✅ |
ZSTD_c_enableLongDistanceMatching | ✅ | ✅ | ✅ |
ZSTD_c_hashLog | ✅ | ✅ | ✅ |
ZSTD_c_jobSize | ✅ | ✅ | ✅ |
ZSTD_c_ldmBucketSizeLog | ✅ | ✅ | ✅ |
ZSTD_c_ldmHashLog | ✅ | ✅ | ✅ |
ZSTD_c_ldmHashRateLog | ✅ | ✅ | ✅ |
ZSTD_c_ldmMinMatch | ✅ | ✅ | ✅ |
ZSTD_c_minMatch | ✅ | ✅ | ✅ |
ZSTD_c_nbWorkers | ✅ | ✅ | ✅ |
ZSTD_c_overlapLog | ✅ | ✅ | ✅ |
ZSTD_c_searchLog | ✅ | ✅ | ✅ |
ZSTD_c_strategy | ✅ | ✅ | ✅ |
ZSTD_c_targetLength | ✅ | ✅ | ✅ |
ZSTD_c_windowLog | ✅ | ✅ | ✅ |
ZSTD_d_windowLogMax | ✅ | ✅ | ✅ |
ZSTD_dfast | ✅ | ✅ | ✅ |
ZSTD_e_continue | ✅ | ✅ | ✅ |
ZSTD_e_end | ✅ | ✅ | ✅ |
ZSTD_e_flush | ✅ | ✅ | ✅ |
ZSTD_error_GENERIC | ✅ | ✅ | ✅ |
ZSTD_error_checksum_wrong | ✅ | ✅ | ✅ |
ZSTD_error_corruption_detected | ✅ | ✅ | ✅ |
ZSTD_error_dictionaryCreation_failed | ✅ | ✅ | ✅ |
ZSTD_error_dictionary_corrupted | ✅ | ✅ | ✅ |
ZSTD_error_dictionary_wrong | ✅ | ✅ | ✅ |
ZSTD_error_dstBuffer_null | ✅ | ✅ | ✅ |
ZSTD_error_dstSize_tooSmall | ✅ | ✅ | ✅ |
ZSTD_error_frameParameter_unsupported | ✅ | ✅ | ✅ |
ZSTD_error_frameParameter_windowTooLarge | ✅ | ✅ | ✅ |
ZSTD_error_init_missing | ✅ | ✅ | ✅ |
ZSTD_error_literals_headerWrong | ✅ | ✅ | ✅ |
ZSTD_error_maxSymbolValue_tooLarge | ✅ | ✅ | ✅ |
ZSTD_error_maxSymbolValue_tooSmall | ✅ | ✅ | ✅ |
ZSTD_error_memory_allocation | ✅ | ✅ | ✅ |
ZSTD_error_noForwardProgress_destFull | ✅ | ✅ | ✅ |
ZSTD_error_noForwardProgress_inputEmpty | ✅ | ✅ | ✅ |
ZSTD_error_no_error | ✅ | ✅ | ✅ |
ZSTD_error_parameter_combination_unsupported | ✅ | ✅ | ✅ |
ZSTD_error_parameter_outOfBound | ✅ | ✅ | ✅ |
ZSTD_error_parameter_unsupported | ✅ | ✅ | ✅ |
ZSTD_error_prefix_unknown | ✅ | ✅ | ✅ |
ZSTD_error_srcSize_wrong | ✅ | ✅ | ✅ |
ZSTD_error_stabilityCondition_notRespected | ✅ | ✅ | ✅ |
ZSTD_error_stage_wrong | ✅ | ✅ | ✅ |
ZSTD_error_tableLog_tooLarge | ✅ | ✅ | ✅ |
ZSTD_error_version_unsupported | ✅ | ✅ | ✅ |
ZSTD_error_workSpace_tooSmall | ✅ | ✅ | ✅ |
ZSTD_fast | ✅ | ✅ | ✅ |
ZSTD_greedy | ✅ | ✅ | ✅ |
ZSTD_lazy | ✅ | ✅ | ✅ |
ZSTD_lazy2 | ✅ | ✅ | ✅ |
Z_BEST_COMPRESSION | ✅ | ✅ | ✅ |
Z_BEST_SPEED | ✅ | ✅ | ✅ |
Z_BLOCK | ✅ | ✅ | ✅ |
Z_BUF_ERROR | ✅ | ✅ | ✅ |
Z_DATA_ERROR | ✅ | ✅ | ✅ |
Z_DEFAULT_CHUNK | ✅ | ✅ | ✅ |
Z_DEFAULT_COMPRESSION | ✅ | ✅ | ✅ |
Z_DEFAULT_LEVEL | ✅ | ✅ | ✅ |
Z_DEFAULT_MEMLEVEL | ✅ | ✅ | ✅ |
Z_DEFAULT_STRATEGY | ✅ | ✅ | ✅ |
Z_DEFAULT_WINDOWBITS | ✅ | ✅ | ✅ |
Z_ERRNO | ✅ | ✅ | ✅ |
Z_FILTERED | ✅ | ✅ | ✅ |
Z_FINISH | ✅ | ✅ | ✅ |
Z_FIXED | ✅ | ✅ | ✅ |
Z_FULL_FLUSH | ✅ | ✅ | ✅ |
Z_HUFFMAN_ONLY | ✅ | ✅ | ✅ |
Z_MAX_CHUNK | ✅ | ✅ | ✅ |
Z_MAX_LEVEL | ✅ | ✅ | ✅ |
Z_MAX_MEMLEVEL | ✅ | ✅ | ✅ |
Z_MAX_WINDOWBITS | ✅ | ✅ | ✅ |
Z_MEM_ERROR | ✅ | ✅ | ✅ |
Z_MIN_CHUNK | ✅ | ✅ | ✅ |
Z_MIN_LEVEL | ✅ | ✅ | ✅ |
Z_MIN_MEMLEVEL | ✅ | ✅ | ✅ |
Z_MIN_WINDOWBITS | ✅ | ✅ | ✅ |
Z_NEED_DICT | ✅ | ✅ | ✅ |
Z_NO_COMPRESSION | ✅ | ✅ | ✅ |
Z_NO_FLUSH | ✅ | ✅ | ✅ |
Z_OK | ✅ | ✅ | ✅ |
Z_PARTIAL_FLUSH | ✅ | ✅ | ✅ |
Z_RLE | ✅ | ✅ | ✅ |
Z_STREAM_END | ✅ | ✅ | ✅ |
Z_STREAM_ERROR | ✅ | ✅ | ✅ |
Z_SYNC_FLUSH | ✅ | ✅ | ✅ |
Z_VERSION_ERROR | ✅ | ✅ | ✅ |
ZstdCompress | ✅ | ✅ | ✅ |
ZstdDecompress | ✅ | ✅ | ✅ |
brotliCompress | ✅ | ✅ | ✅ |
brotliCompressSync | ✅ | ✅ | ✅ |
brotliDecompress | ✅ | ✅ | ✅ |
brotliDecompressSync | ✅ | ✅ | ✅ |
codes | ✅ | ✅ | ✅ |
constants | ✅ | ✅ | ✅ |
crc32 | ✅ | ✅ | ✅ |
createBrotliCompress | ✅ | ✅ | ✅ |
createBrotliDecompress | ✅ | ✅ | ✅ |
createDeflate | ✅ | ✅ | ✅ |
createDeflateRaw | ✅ | ✅ | ✅ |
createGunzip | ✅ | ✅ | ✅ |
createGzip | ✅ | ✅ | ✅ |
createInflate | ✅ | ✅ | ✅ |
createInflateRaw | ✅ | ✅ | ✅ |
createUnzip | ✅ | ✅ | ✅ |
createZstdCompress | ✅ | ✅ | ✅ |
createZstdDecompress | ✅ | ✅ | ✅ |
deflate | ✅ | ✅ | ✅ |
deflateRaw | ✅ | ✅ | ✅ |
deflateRawSync | ✅ | ✅ | ✅ |
deflateSync | ✅ | ✅ | ✅ |
gunzip | ✅ | ✅ | ✅ |
gunzipSync | ✅ | ✅ | ✅ |
gzip | ✅ | ✅ | ✅ |
gzipSync | ✅ | ✅ | ✅ |
inflate | ✅ | ✅ | ✅ |
inflateRaw | ✅ | ✅ | ✅ |
inflateRawSync | ✅ | ✅ | ✅ |
inflateSync | ✅ | ✅ | ✅ |
unzip | ✅ | ✅ | ✅ |
unzipSync | ✅ | ✅ | ✅ |
zstdCompress | ✅ | ✅ | ✅ |
zstdCompressSync | ✅ | ✅ | ✅ |
zstdDecompress | ✅ | ✅ | ✅ |
zstdDecompressSync | ✅ | ✅ | ✅ |