@immutabl3/lz-string

0.0.1 • Public • Published

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:

minified
`~3.2kB`
gzipped
`~0.9kB`
brotli'd
`~0.8kB`

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @immutabl3/lz-string

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

43.3 kB

Total Files

12

Last publish

Collaborators

  • immutablellc