D5LY - npm
The fastest deflate compressor in npm
Usage
With npm installed, run:
$ npm install d5ly
Then use:
For React:
For NodeJS:
d5ly =
Then:
if you sure, that wasm already had time to initialize, you can only use:
var sourceArray = 1000000;sourceArray4 = 45;sourceArray9 = 32;console;var compressedArray = d5ly;console;var decompressedArray = d5ly;console;compressedArray = d5ly;console;decompressedArray = d5ly;console;compressedArray = d5ly;console;decompressedArray = d5ly;console;
You can check, if the wasm have been intialized by function:
d5ly;
If you don't sure, thst the wasm have been initialized, you should put your code into callback:
d5ly;
Speed test in compare with pako and wasm-flate: