0.0.1 • Published 3 years ago
@immutabl3/lz-string v0.0.1
lz-string
LZ-based compression algorithm
A esmodule port of pieroxy/lz-string with a ton of (benchmarked) optimizations and a smaller file size
Install via npm
$ npm install @immutabl3/lz-string
Home page
Home page for this program with examples, documentation and a live demo: http://pieroxy.net/blog/pages/lz-string/index.html
Benchmark
lz-string: compress x 374 ops/sec ±1.20% (82 runs sampled)
@immutabl3/lz-string: compress x 411 ops/sec ±1.40% (83 runs sampled)
lz-string: decompress x 1,419 ops/sec ±0.21% (96 runs sampled)
@immutabl3/lz-string: decompress x 83,761,295 ops/sec ±0.26% (97 runs sampled)
Library Size
As of version 0.0.1
the payload added to your app is rather small. Served using gzip compression, lz-string will add less than 1k
to your total bundle size:
License
0.0.1
3 years ago