Skip to content
An experimental lightning-fast Wasm-compiled levenshtein library.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode misc: Initial commit May 22, 2019
assembly perf: Change algorithm to js-levenshtein's Jun 7, 2019
src revert: Allocated memory should be retained and released Jun 7, 2019
static assets: Modified logo May 22, 2019
types misc: Port loader for portability May 22, 2019
.eslintrc.json misc: Rewrite codebase to TypeScript and set up linters May 22, 2019
.gitignore git: Ignore built benchmark files Jun 6, 2019
.npmignore npm: Ignore benchmark folder Jun 6, 2019
LICENSE docs: Added logo to the README May 22, 2019
azure-pipelines.yml src: Barebones Benchmark (#2) Jun 6, 2019
package.json build(deps-dev): Bump typescript from 3.5.1 to 3.5.2 (#20) Jun 14, 2019
tsconfig.json misc: Port loader for portability May 22, 2019

Levenshtein Wasm

🚀 Experimental Wasm library made using AssemblyScript to convert strict TypeScript into fast and optimized Web Assembly binaries.


levenshtein-wasm only exports a function, named levenshtein, which takes two strings and returns its Levenshtein distance:

const { levenshtein } = require('levenshtein-wasm');
// const levenshtein = require('levenshtein-wasm').levenshtein;
// import { levenshtein } from 'levenshtein-wasm';

console.log(levenshtein('cat', 'cow'));
// -> 2


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request!


levenshtein-wasm © kyranet, released under the MIT License. Authored and maintained by kyranet.

Github kyranet - Twitter @kyranet_

You can’t perform that action at this time.