mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: more compression
This commit is contained in:
1 parent
afe041f969
commit
1575b803c0
11 files changed
+135
-59
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { encode } from 'lz4';
|
||||
import { BkonWriteStream } from '../streams/bkon';
|
||||
|
||||
export function superCompress(object: any) {
|
||||
const write = new BkonWriteStream().bkon(object);
|
||||
const compressed = encode(write.buffer);
|
||||
return compressed.toString('base64');
|
||||
}
|
||||
Reference in new issue
Block a user