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);