![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
levenshtein-edit-distance
Advanced tools
Readme
Levenshtein edit distance (by Vladimir Levenshtein). No cruft. Real fast.
npm:
$ npm install levenshtein-edit-distance
Component:
$ component install wooorm/levenshtein-edit-distance
Bower:
$ bower install levenshtein-edit-distance
var levenshteinDistance = require('levenshtein-edit-distance');
levenshteinDistance('levenshtein', 'levenshtein'); // 0
levenshteinDistance('sitting', 'kitten'); // 3
levenshteinDistance('gumbo', 'gambol'); // 2
levenshteinDistance('saturday', 'sunday'); // 3
/* Case sensitive! */
levenshteinDistance('DwAyNE', 'DUANE') !== levenshteinDistance('dwayne', 'DuAnE'); // true
/* Order insensitive */
levenshteinDistance('aarrgh', 'aargh') === levenshteinDistance('aargh', 'aarrgh'); // true
On a MacBook Air, it runs about 1,915,000 op/s.
Run the benchmark yourself:
$ npm run benchmark
Levenshtein — to be fair, it lets you inspect a matrix
129 op/s » op/s * 1,000
natural — to be fair, it offers more options
212 op/s » op/s * 1,000
levenshtein-deltas
252 op/s » op/s * 1,000
levenshtein-component
335 op/s » op/s * 1,000
fast-levenshtein
1,251 op/s » op/s * 1,000
Leven — fast.
1,541 op/s » op/s * 1,000
levenshtein-edit-distance — this module
1,915 op/s » op/s * 1,000
MIT © Titus Wormer
FAQs
Levenshtein edit distance
The npm package levenshtein-edit-distance receives a total of 149,639 weekly downloads. As such, levenshtein-edit-distance popularity was classified as popular.
We found that levenshtein-edit-distance demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.