5.0.0 • Published 2 years ago

jots v5.0.0

Weekly downloads
21
License
MIT
Repository
github
Last release
2 years ago

jots

String similarity scoring as used in Jotto.

Example

var jots = require('jots');

jots('bread', 'beard');
// => 5

Installation

$ npm install jots

API

var jots = require('jots');

jots(correct, guess)

Returns how many characters String guess has in common with String correct. Assumes that guess does not have any repeating letters, otherwise this will happen:

jots('bread', 'eeeee');
// => 5
5.0.0

2 years ago

4.0.0

3 years ago

3.0.0

4 years ago

2.0.1

4 years ago

2.0.0

5 years ago

1.0.5

9 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago