0.2.2 • Published 7 years ago

libhrc v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

libhrc

Human-Readable Compression

Build Status

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', '<', '>'));

Demo

Installation

$ npm install libhrc

Features

  • finds repeated words, not subsequence of characters.
  • use tagging to stylize repeats (e.g. for HTML/CSS)

Philosophy

Reduce sentence length by finding repeated words/sequence of words. Make output easily decoded by a human reader.

Tests

npm test

License

MIT

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago