smol-string
v1.0.3
Published
Compression for browser localStorage
Downloads
197
Maintainers
Readme
smol-string
smol-string
is a compression library designed for use with browsers' localStorage
(and sessionStorage
). It serves as a faster alternative to lz-string
.
For more information, check the GitHub Repository.
Installation
npm install -S smol-string
Basic Usage
import { compress, decompress } from "smol-string";
const input = "Any JS String";
const compressed = compress(input);
const decompressed = decompress(compressed);