mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: rename to cdon
This commit is contained in:
1 parent
901f1bfe42
commit
9cfa2357b0
12 files changed
+49
-49
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { compress } from 'lz4js';
|
||||
import { BkonWriteStream } from '../streams/bkon';
|
||||
import { CdonWriteStream } from '../streams/cdon';
|
||||
|
||||
export function superCompress(object: any) {
|
||||
const write = new BkonWriteStream().bkon(object);
|
||||
const write = new CdonWriteStream().cdon(object);
|
||||
const compressed = compress(write.buffer);
|
||||
return Buffer.from(compressed).toString('base64');
|
||||
}
|
||||
Reference in new issue
Block a user