Skip to content

JoshRami/Run-Length-File-Encoder-Decoder

Repository files navigation

Run-length encoding (RLE)

This repo contains the solution for the week 2 assignment, the task is to build an RLE app in the command line that encode or decode a file pass by the user through cli.

drawing

Requirements

If a merge on master branch completes a requirement, the requirement will be marked as complete on the requirement list

Using types and taking advantage of the knowledge gained during the week, create:

  • An application that receives two parameters.
    • A file name
    • An option flag
  • The application should be able to encode a file using run length encoding.
  • The application should be able to read a file encoded with run length encoding and decode it.
  • Input files will only contain text when decoded.
  • The option flag determines whether to encode or decode the given file.
  • The application can override the file, or create another one. This is left optional to the developer.
  • Extra credit: Add tslint/eslint to the project.

Aplication usage

You can run this app with the following command: ts-node scr/app.ts [ inputFile optionFlag[(-e or --encode) | (-d or --decode) ]

For help about commands input you can type: ts-node scr/app.ts --help

About

This project contains an CLI rle tool to encode/decode your files easily

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published