Artifact Content
Artifact 853f3200a848ab9afd61baafe11b518c70f8f46abf112991cf459819d979bf77:
- File public/json-url-master/src/main/codecs/lzstring.js — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 271)
import LOADERS from 'main/loaders'; export default { pack: false, encode: true, compress: async string => Buffer.from((await LOADERS.lzstring()).compressToUint8Array(string)), decompress: async buffer => (await LOADERS.lzstring()).decompressFromUint8Array(buffer) };