MCPcopy Index your code
hub / github.com/nodejs/node / compressGzip

Function compressGzip

lib/internal/streams/iter/transform.js:673–679  ·  view source on GitHub ↗
(options = kNullPrototype)

Source from the content-addressed store, hash-verified

671const kNullPrototype = { __proto__: null };
672
673function compressGzip(options = kNullPrototype) {
674 validateObject(options, 'options');
675 return makeZlibTransform(
676 (cb, onErr) => createZlibHandle(GZIP, options, cb, onErr),
677 Z_NO_FLUSH, Z_FINISH,
678 );
679}
680
681function compressDeflate(options = kNullPrototype) {
682 validateObject(options, 'options');

Callers 15

runFunction · 0.85
testPipeToWithTransformFunction · 0.85
testAbortMidCompressionFunction · 0.85
testEarlyConsumerExitFunction · 0.85
testGzipWithStrategyFunction · 0.85
testGzipWithChunkSizeFunction · 0.85
testInvalidChunkSizeFunction · 0.85
testWithCompressionFunction · 0.85
testAsyncValidationFunction · 0.85
testCompressRoundTripFunction · 0.85
testGzipRoundTripFunction · 0.85

Calls 2

makeZlibTransformFunction · 0.85
createZlibHandleFunction · 0.85

Tested by

no test coverage detected