brotli
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "brotli", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A port of the Brotli compression algorithm as used in WOFF2", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,3 @@ # Brotli.js | ||
### brotli.decode(buffer, outSize) | ||
### brotli.decompress(buffer, outSize) | ||
@@ -34,9 +34,9 @@ Decompresses the given buffer to produce the original input to the compressor. | ||
// decode a buffer where the output size is known | ||
brotli.decode(compressedData, uncompressedLength); | ||
brotli.decompress(compressedData, uncompressedLength); | ||
// decode a buffer where the output size is not known | ||
brotli.decode(fs.readFileSync('compressed.bin')); | ||
brotli.decompress(fs.readFileSync('compressed.bin')); | ||
``` | ||
### brotli.encode(buffer, isText = false) | ||
### brotli.compress(buffer, isText = false) | ||
@@ -49,6 +49,6 @@ Compresses the given buffer. Pass `true` as the second argument if the input | ||
// encode a buffer of binary data | ||
brotli.encode(fs.readFileSync('myfile.bin')); | ||
brotli.compress(fs.readFileSync('myfile.bin')); | ||
// encode some text data | ||
brotli.encode(fs.readFileSync('myfile.bin'), true); | ||
brotli.compress(fs.readFileSync('myfile.bin'), true); | ||
``` | ||
@@ -55,0 +55,0 @@ |
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
2153413
8542
1