https://github.com/ullenius/rle-js
Run-length encoding & decoding in JS. Command-line Unix-style. Vanilla node.
https://github.com/ullenius/rle-js
js lgplv2 nodejs rle rle-compression-algorithm vanilla-javascript vanilla-nodejs
Last synced: 3 months ago
JSON representation
Run-length encoding & decoding in JS. Command-line Unix-style. Vanilla node.
- Host: GitHub
- URL: https://github.com/ullenius/rle-js
- Owner: ullenius
- License: lgpl-2.1
- Created: 2022-07-09T19:01:50.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-09T20:09:13.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T15:54:17.510Z (5 months ago)
- Topics: js, lgplv2, nodejs, rle, rle-compression-algorithm, vanilla-javascript, vanilla-nodejs
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# rle-js
* [Run-length encoding](https://en.wikipedia.org/wiki/Run-length_encoding) and decoding in JS.
## Features
* Vanilla node - no dependencies.
* Unix-style pipe support.## How to use it
Encoding:
```bash
$ node rle-encode.js < input.txt
```Decoding:
```bash
$ 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](COPYING).
### Further reading:
* [The perils of LGPLv3](https://nikmav.blogspot.com/2013/03/the-perils-of-lgplv3.html)
* FSF [LGPL compatibility matrix](https://gplv3.fsf.org/dd3-faq#gpl-compat-matrix)
### Libraries
* Uses `jstinytest` (MIT licence) for testing.