compress-brotli
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.2.2](https://github.com/Kikobeats/compress-brotli/compare/v1.2.1...v1.2.2) (2020-04-23) | ||
### [1.2.1](https://github.com/Kikobeats/compress-brotli/compare/v1.2.0...v1.2.1) (2019-11-04) | ||
@@ -7,0 +9,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/compress-brotli", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -14,6 +14,6 @@ # compress-brotli | ||
* Auto detect Node.js brotli API (`>=11.7.0`). | ||
* Handle edge cases (such as try to compress `undefined`). | ||
* JSON serialization/deserialization with Buffer support by default. | ||
* Easy tu customize (e.g., using [v8 serialization](https://nodejs.org/api/v8.html#v8_v8_serialize_value)). | ||
- Auto detect Node.js brotli API (`>=11.7.0`). | ||
- Handle edge cases (such as try to compress `undefined`). | ||
- JSON serialization/deserialization with Buffer support by default. | ||
- Easy tu customize (e.g., using [v8 serialization](https://nodejs.org/api/v8.html#v8_v8_serialize_value)). | ||
@@ -41,2 +41,14 @@ ## Install | ||
using [v8 serialization](https://nodejs.org/api/v8.html#v8_v8_serialize_value): | ||
```js | ||
const createCompress = require('compress-brotli') | ||
const v8 = require('v8') | ||
const { compress, decompress } = createCompress({ | ||
serialize: v8.serialize, | ||
deserialize: v8.deserialize | ||
}) | ||
``` | ||
## API | ||
@@ -43,0 +55,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10032
83