Socket
Socket
Sign inDemoInstall

compress-brotli

Package Overview
Dependencies
1
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.2.2

2

CHANGELOG.md

@@ -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 @@

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc