const { init, compress, decompress } = require('@bokuweb/zstd-wasm');
(async () => {
await init();
const compressed = compress(Buffer.from('Hello zstd!!'), 10);
console.log(compressed)
const res = decompress(compressed);
console.log(Buffer.from(res).toString('base64'));
})();