Package Exports
- lz-ts
- lz-ts/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 (lz-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lz-string-ts
LZ-based compression algorithm for TypeScript projects (Browser, Node.js).
This project is a TypeScript port of lz-string
using modern tooling.
Setup
yarn add lz-string-ts
Usage
import { compress, decompress } from 'ls-string-ts'
const compressed = compress('input')
const decompressed = decompress(compressed)
Limitations
This project intentionally doesn't implement the base64
and uri
encodings
the original project has; also, there is no CLI.
Test
yarn test