Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (24 loc) · 945 Bytes

readme.md

File metadata and controls

42 lines (24 loc) · 945 Bytes

LZW

Simple implementatio of lzw algorithm.

Requirements

Compile and test

  1. node with npm installed ( https://nodejs.org/ )
  2. global node packages important for building this project:
    • typescript
    • pkg
  3. download local dependencies npm install

( global packages can be installed by npm i -g pkg typescript )

Run builded executables

No special requirements, compiled package contains everything needed.

Usage

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.

Test on random text

Run npm test

Build executables

Run npm run dist executables are in build directory

Run source code without building

Run with ts-node ./index.ts ( + arguments after )

VSCode debug

  • start automatic tsc tsc --watch
  • insert your testfile inside data directory as test.txt