node-levenshtein
Advanced tools
Comparing version 3.0.2 to 3.0.3
{ | ||
"name": "node-levenshtein", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Fastest Levenshtein distance implementation in JS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,5 +17,7 @@ # node-levenshtein :rocket: | ||
// Print edit-distance between 'fast' and 'faster' | ||
console.log(levenshtein.compare('fast', 'faster')) | ||
//=> 4 | ||
//=> 2 | ||
// Print string from array with lowest edit-distance to 'fast' | ||
console.log(levenshtein.find('fast', ['slow', 'faster', 'fastest'])) | ||
@@ -22,0 +24,0 @@ //=> 'faster' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19967
45