export=
Index
Interfaces
Interfaces
LZStringStatic
compress
Compresses input string producing an instance of an "invalid" UTF-16 string. Such string could be stored in localStorage only on webkit browsers (tested on Android, Chrome, Safari).
Parameters
uncompressed: string
A string which should be compressed.
Returns string
compressToBase64
Compresses input string producing an instance of a ASCII UTF-16 string, which represents the original string encoded in Base64. The result can be safely transported outside the browser with a guarantee that none of the characters produced need to be URL-encoded.
Parameters
uncompressed: string
A string which should be compressed.
Returns string
compressToEncodedURIComponent
produces ASCII strings representing the original string encoded in Base64 with a few tweaks to make these URI safe. Hence, you can send them to the server without thinking about URL encoding them. This saves bandwidth and CPU
Parameters
uncompressed: string
A string which should be compressed.
Returns string
compressToUTF16
Compresses input string producing an instance of a "valid" UTF-16 string, in the sense that all browsers can store them safely.
Parameters
uncompressed: string
A string which should be compressed.
Returns string
compressToUint8Array
produces an uint8Array
Parameters
uncompressed: string
A string which should be compressed.
Returns Uint8Array
decompress
Decompresses "invalid" input string created by the method compress().
Parameters
compressed: string
A string obtained from a call to compress().
Returns string
decompressFromBase64
Decompresses ASCII UTF-16 input string created by the method compressToBase64().
Parameters
compressed: string
A string obtained from a call to compressToBase64().
Returns string
decompressFromEncodedURIComponent
Decompresses "valid" input string created by the method compressToEncodedURIComponent().
Parameters
compressed: string
A string obtained from a call to compressToEncodedURIComponent().
Returns string
decompressFromUTF16
Decompresses "valid" input string created by the method compressToUTF16().
Parameters
compressed: string
A string obtained from a call to compressToUTF16().
Returns string
decompressFromUint8Array
Decompresses "valid" array created by the method compressToUint8Array().
Parameters
compressed: Uint8Array
A string obtained from a call to compressToUint8Array().
Returns string
LZ-based compression algorithm for JavaScript.