Skip to content

kamyu1537/lz77-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lz77-wasm

rust lz77 library built with wasm to be usable in nodejs.

Installation

npm i @kamyu/lz77

Build

Requirements

Command

npm run build

How to use?

parameter: Buffer or Uint8Array
return: Uint8Array

Javascript

const fs = require('fs');
const lz77 = require('@kamyu/lz77');

lz77.compress(fs.readFileSync('test.txt'));
lz77.decompress(fs.readFileSync('test.txt.lz77'));

Typescript

import * as fs from 'fs';
import * as lz77 from '@kamyu/lz77';

lz77.compress(fs.readFileSync('test.txt'));
lz77.decompress(fs.readFileSync('test.txt.lz77'));

About

konmai lz77 compression library

Resources

License

Stars

Watchers

Forks

Packages

No packages published