MCPcopy Create free account
hub / github.com/nodejs/node / compressBrotli

Function compressBrotli

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

Source from the content-addressed store, hash-verified

687}
688
689function compressBrotli(options = kNullPrototype) {
690 validateObject(options, 'options');
691 return makeZlibTransform(
692 (cb, onErr) => createBrotliHandle(BROTLI_ENCODE, options, cb, onErr),
693 BROTLI_OPERATION_PROCESS, BROTLI_OPERATION_FINISH,
694 );
695}
696
697function compressZstd(options = kNullPrototype) {
698 validateObject(options, 'options');

Callers 9

testBrotliWithParamsFunction · 0.85
testAsyncValidationFunction · 0.85
testBrotliRoundTripFunction · 0.85
testBrotliLargeDataFunction · 0.85
testEmptyInputBrotliFunction · 0.85
testBrotliCompatWithZlibFunction · 0.85

Calls 2

makeZlibTransformFunction · 0.85
createBrotliHandleFunction · 0.85

Tested by

no test coverage detected