1.23.4 • Published 4 months ago

@velocitycareerlabs/string-matching v1.23.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

Levenshtein Distance package

Finds the closest suggestion using shortest Levenshtein Distance from fastest-levenshtein npm package

Exposes 'getClosest' function which takes two parameters, the inputted incorrect string, and an array of correct possibilities.

Example

add "@velocitycareerlabs/string-matching": "0.5.0-build" to package.json

const { getClosest } = require('@velocitycareerlabs/string-matching');

const closestLevenshteinDistance = await getClosest('fast', 'slow', 'faster', 'fastest');

Returns

faster

1.23.4

4 months ago

1.23.3

5 months ago

1.23.2

6 months ago

1.23.1

7 months ago

1.23.0

7 months ago

1.22.0

8 months ago

1.21.0

10 months ago

1.21.1

10 months ago

1.19.1

1 year ago

1.20.0

12 months ago

1.19.0

1 year ago

1.18.1

1 year ago

1.18.0

1 year ago

1.17.1

1 year ago

1.17.0

1 year ago

1.16.1

1 year ago

1.16.0

2 years ago