leven

WebJar for leven

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

leven
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

leven
WebJar for leven
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/leven

Download leven

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/leven/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>leven</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/leven/
implementation 'org.webjars.npm:leven:3.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/leven/
implementation ("org.webjars.npm:leven:3.1.0")
'org.webjars.npm:leven:jar:3.1.0'
<dependency org="org.webjars.npm" name="leven" rev="3.1.0">
  <artifact name="leven" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='leven', version='3.1.0')
)
libraryDependencies += "org.webjars.npm" % "leven" % "3.1.0"
[org.webjars.npm/leven "3.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

leven Build Status

Measure the difference between two strings
One of the fastest JS implementations of the Levenshtein distance algorithm

Install

$ npm install leven

Usage

const leven = require('leven');

leven('cat', 'cow');
//=> 2

Benchmark

$ npm run bench
         165,926 op/s » leven
         164,398 op/s » talisman
           1,044 op/s » levenshtein-edit-distance
             628 op/s » fast-levenshtein
             497 op/s » levenshtein-component
             195 op/s » ld
             190 op/s » levenshtein
             168 op/s » levdist
              10 op/s » natural

Related


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
3.1.0
2.1.0
1.0.2