Socket
Socket
Sign inDemoInstall

wasm-brotli

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

6

package.json
{
"name": "wasm-brotli",
"version": "1.0.1",
"version": "1.0.2",
"description": "🗜 WebAssembly compiled Brotli library",

@@ -31,3 +31,2 @@ "repository": {

"build": "rollup -c",
"pretest": "npm run build",
"test": "jest",

@@ -61,4 +60,3 @@ "lint": "eslint -c ./package.json ./*.js ./src/**/*.js ./benchmark/*.js ./benchmark/src/**/*.js"

"dependencies": {
"@babel/runtime": "^7.0.0-beta.35",
"kaffeerost": "0.0.1"
"@babel/runtime": "^7.0.0-beta.35"
},

@@ -65,0 +63,0 @@ "babel": {

@@ -69,29 +69,29 @@ # wasm-brotli

### compress(data)
### compress(buffer)
* `data` [`<Uint8Array>`][mdn uint8array]
* `buffer` [`<Uint8Array>`][mdn uint8array]
Compress `data` using Brotli compression.
Compress `buffer` using Brotli compression.
### decompress(data)
### decompress(buffer)
* `data` [`<Uint8Array>`][mdn uint8array]
* `buffer` [`<Uint8Array>`][mdn uint8array]
Decompress `data` using Brotli decompression.
Decompress `buffer` using Brotli decompression.
### brotli(method, data)
### brotli(method, buffer)
* `method` `<BROTLI_COMPRESS>` | `<BROTLI_DECOMPRESS>`
* `data` [`<Uint8Array>`][mdn uint8array]
* `buffer` [`<Uint8Array>`][mdn uint8array]
The function that `compress` and `decompress` wrap. Pass any of the constants
below and data to compress or decompress.
below and a buffer to compress or decompress.
### BROTLI_COMPRESS
Constant, reference, for compressing data with `brotli`.
Constant, reference, for compressing a buffer with `brotli`.
### BROTLI_DECOMPRESS
Constant, reference, for decompressing data with `brotli`.
Constant, reference, for decompressing a buffer with `brotli`.

@@ -98,0 +98,0 @@ [mdn uint8array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc