wasm-brotli
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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
8041756
1
33764
- Removedkaffeerost@0.0.1
- Removed@types/node@8.10.66(transitive)
- Removed@types/text-encoding@0.0.32(transitive)
- Removed@types/webassembly-js-api@0.0.1(transitive)
- Removedkaffeerost@0.0.1(transitive)
- Removedtext-encoding@0.6.4(transitive)