mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
22 lines
567 B
JavaScript
22 lines
567 B
JavaScript
![]() |
/**
|
||
|
* lz-string exports.
|
||
|
*
|
||
|
* @author crespyl [peter@crespyl.net]
|
||
|
* @copyright Peter Jacobs 2021
|
||
|
* @license Apache-2.0
|
||
|
*/
|
||
|
|
||
|
import LZString from "lz-string";
|
||
|
|
||
|
export const COMPRESSION_OUTPUT_FORMATS = ["default", "UTF16", "Base64"];
|
||
|
export const COMPRESSION_FUNCTIONS = {
|
||
|
"default": LZString.compress,
|
||
|
"UTF16": LZString.compressToUTF16,
|
||
|
"Base64": LZString.compressToBase64,
|
||
|
};
|
||
|
export const DECOMPRESSION_FUNCTIONS = {
|
||
|
"default": LZString.decompress,
|
||
|
"UTF16": LZString.decompressFromUTF16,
|
||
|
"Base64": LZString.decompressFromBase64,
|
||
|
};
|