Skip to content

kwunshing123/fuzzy-score

Repository files navigation

Fuzzy Score in Typescript

Fuzzy Score algorithm implementation

Install

npm install -S fuzzy-score

Usage

import fuzzyScore from "fuzzy-score";

fuzzyScore('', '');
// 0

fuzzyScore('Workshop', 'b');
// 0

fuzzyScore('Room', 'o');
// 1

fuzzyScore('Workshop', 'w');
// 1

fuzzyScore('Workshop', 'ws');
// 2

fuzzyScore('Workshop', 'wo');
// 4