Simple implementatio of lzw algorithm.
- node with npm installed ( https://nodejs.org/ )
- global node packages important for building this project:
- typescript
- pkg
- download local dependencies
npm install
( global packages can be installed by npm i -g pkg typescript
)
No special requirements, compiled package contains everything needed.
Parmaters are listed through -h
argument.
Program has compress/decompress mode. If not specified program will select decopress if file has .lzw extension or compress otherwise.
Run npm test
Run npm run dist
executables are in build directory
Run with ts-node ./index.ts
( + arguments after )
- start automatic tsc
tsc --watch
- insert your testfile inside data directory as test.txt