Human-Readable Compression
var libhrc = require('libhrc');
var s = "Yolo Baggins Yolo Baggins Yolo Baggins Baggins Baggins Baggins Baggins Baggins";
console.log(libhrc.greedy_compress(s, ' ', true, ' x', '<', '>'));
$ npm install libhrc
- finds repeated words, not subsequence of characters.
- use tagging to stylize repeats (e.g. for HTML/CSS)
Reduce sentence length by finding repeated words/sequence of words. Make output easily decoded by a human reader.
npm test