ullenius / rle-js

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:GNU Lesser General Public License v2.1


Languages

Language:JavaScript 98.2%Language:Shell 1.8%