A very clever algorithm that compares two strings, using adjacent character pairs.
This package is distributed via npm:
npm install strike-a-match
var comparison = require('strike-a-match');
var result = comparison.compareStrings("Healed", "Sealed");
console.log(result); // 0.8
This library was just ported by John Vidal to javascript, the algorithm is describe with details here: http://www.catalysoft.com/articles/StrikeAMatch.html