@ededejr/lzc
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i @ededejr/lzc

Weekly Downloads

10

Version

0.1.1

License

MIT

Unpacked Size

11 kB

Total Files

11

Last publish

Collaborators

  • dxede