JSPM

@immutabl3/lz-string

0.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 8
    • Score
      100M100P100Q41568F
    • License MIT

    LZ-based compression algorithm

    Package Exports

    • @immutabl3/lz-string
    • @immutabl3/lz-string/src/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@immutabl3/lz-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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