/rle-js

Run-length encoding & decoding in JS. Command-line Unix-style. Vanilla node.

Primary LanguageJavaScriptGNU Lesser General Public License v2.1LGPL-2.1

rle-js

Features

  • Vanilla node - no dependencies.
  • Unix-style pipe support.

How to use it

Encoding:

$ node rle-encode.js < input.txt

Decoding:

$ node rle-decode.js < rle-encoded.txt

Requirements

  • Node v8.x

Running tests

Run run-tests.sh bash script to invoke the unit tests.

They are written using my fork of jstinytest which is bundled inside tests/tinytest.js.

Licence

LGPL v2.1 only.

See COPYING.

Further reading:

Libraries

  • Uses jstinytest (MIT licence) for testing.