Gathering detailed insights and metrics for js-levenshtein-esm
Gathering detailed insights and metrics for js-levenshtein-esm
npm install js-levenshtein-esm
Typescript
Module System
Node Version
NPM Version
JavaScript (94.87%)
TypeScript (5.13%)
Total Downloads
4,604,938
Last Day
6,148
Last Week
27,332
Last Month
131,564
Last Year
1,973,185
1 Stars
39 Commits
1 Forks
4 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.2.0
Package Id
js-levenshtein-esm@1.2.0
Size
3.03 kB
NPM Version
6.4.1
Node Version
10.11.0
Publised On
25 Feb 2019
Cumulative downloads
Total Downloads
Last day
-12.2%
6,148
Compared to previous day
Last week
-16.1%
27,332
Compared to previous week
Last month
3.9%
131,564
Compared to previous month
Last year
66.3%
1,973,185
Compared to previous year
This is a fork of js-levenshtein rewritten for ES module consumption.
A very efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Based on Wagner-Fischer dynamic programming algorithm, optimized for speed and memory
$ npm i -S js-levenshtein-esm
In Node:
1const levenshtein = require('js-levenshtein-esm'); 2 3levenshtein('kitten', 'sitting'); // 3
In the browser:
1import levenshtein from 'https://unpkg.com/js-levenshtein-esm/js-levenshtein.js'; 2 3levenshtein('kitten', 'sitting'); // 3
$ npm run test:perf
50 paragraphs, length max=500 min=240 avr=372.5
62 op/s � fast-levenshtein
143 op/s � js-levenshtein
140 op/s � js-levenshtein-esm
89 op/s � leven
92 op/s � levenshtein-edit-distance
100 op/s � talisman
100 sentences, length max=170 min=6 avr=57.5
1,304 op/s � fast-levenshtein
2,829 op/s � js-levenshtein
2,750 op/s � js-levenshtein-esm
1,780 op/s � leven
1,788 op/s � levenshtein-edit-distance
2,097 op/s � talisman
2000 words, length max=20 min=3 avr=9.5
1,952 op/s � fast-levenshtein
3,104 op/s � js-levenshtein
2,908 op/s � js-levenshtein-esm
2,351 op/s � leven
2,381 op/s � levenshtein-edit-distance
2,729 op/s � talisman
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/30 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
60 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More