jots

5.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i jots

Weekly Downloads

6

Version

5.0.0

License

MIT

Unpacked Size

2.83 kB

Total Files

4

Last publish

Collaborators

  • kenan