@ededejr/lzc
v0.1.1
Published
a string compression wrapper around lz-string
Downloads
22
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);