Package provides javascript implementation in finding the longest repeated sub-sequence/substring within a text body
Run the following npm command to install
npm install js-longest-repeated-substring
To sort an array "a" using any of the sorting algorithms:
var jslrs = require("js-longest-repeated-substring");
var text = "ATCGATCGA$";
console.log(jslrs.lrs(text)); // display ATCGA