rust lz77 library built with wasm to be usable in nodejs.
npm i @kamyu/lz77
npm run build
parameter: Buffer or Uint8Array
return: Uint8Array
const fs = require('fs');
const lz77 = require('@kamyu/lz77');
lz77.compress(fs.readFileSync('test.txt'));
lz77.decompress(fs.readFileSync('test.txt.lz77'));
import * as fs from 'fs';
import * as lz77 from '@kamyu/lz77';
lz77.compress(fs.readFileSync('test.txt'));
lz77.decompress(fs.readFileSync('test.txt.lz77'));