Artifact Content
Artifact 7e77d68dedebb7bd2a47e5513134e2df2af36b49ebaf67998c49d39223c32e55:
- File public/json-url-master/src/main/codecs/lzw.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: 266)
import LOADERS from 'main/loaders'; export default { pack: true, encode: true, compress: async input => Buffer.from((await LOADERS.lzw()).encode(input.toString('binary'))), decompress: async input => Buffer.from((await LOADERS.lzw()).decode(input), 'binary') };