JSPM

@ededejr/lzc

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q39088F
  • License MIT

a string compression wrapper around lz-string

Package Exports

  • @ededejr/lzc
  • @ededejr/lzc/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 (@ededejr/lzc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

lzc

a simple wrapper around lz-string for compressing and decompressing strings. this wrapper allows downstream consumers reliably use the same lz-string version across various components.

usage

import lzc from '@ededejr/lzc';

const compressor = lzc('base64');

const input = 'a very long string';
const compressed = compressor.compress(input);
const decompressed = compressor.decompress(compressed);

background

inspirations