burrows-wheeler
A very simple implementation of the Burrows-Wheeler transform. This is mainly made as a demonstration of ndarray-string and ndarray-sort.
Example
var bwt = //Execute a forward transformvar y = console //Inverse transformvar z = console
Install
npm install burrows-wheeler
API
require("burrows-wheeler")(direction, string)
Applies the Burrows-Wheeler transform to string.
direction
if set to 1 does a forward transform, else if set to -1 does an inverse transformstring
is the string to transform
Returns The forward/inverse Burrows-Wheeler transform of string
Credits
(c) 2013 Mikola Lysenko. MIT License