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

Function compressBrotliSync

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

Source from the content-addressed store, hash-verified

759}
760
761function compressBrotliSync(options = kNullPrototype) {
762 validateObject(options, 'options');
763 return makeZlibTransformSync(
764 (cb, onErr) => createBrotliHandle(BROTLI_ENCODE, options, cb, onErr),
765 BROTLI_OPERATION_PROCESS, BROTLI_OPERATION_FINISH,
766 );
767}
768
769function compressZstdSync(options = kNullPrototype) {
770 validateObject(options, 'options');

Callers 3

testBrotliRoundTripFunction · 0.85
testBrotliLargeDataFunction · 0.85
testBrotliWithOptionsFunction · 0.85

Calls 2

makeZlibTransformSyncFunction · 0.85
createBrotliHandleFunction · 0.85

Tested by

no test coverage detected