strike-a-match

1.2.0 • Public • Published

strike-a-match

Build Status version MIT License

A very clever algorithm that compares two strings, using adjacent character pairs.

Installation

This package is distributed via npm:

npm install strike-a-match

Usage

var comparison = require('strike-a-match');
var result = comparison.compareStrings("Healed", "Sealed");
console.log(result); // 0.8

Other

This library was just ported by John Vidal to javascript, the algorithm is describe with details here: http://www.catalysoft.com/articles/StrikeAMatch.html

Package Sidebar

Install

npm i strike-a-match

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

7.87 kB

Total Files

6

Last publish

Collaborators

  • jlvidal