UNPKG

qlevens

Version:

A lightning-fast implementation of the Levenshtein distance algorithm. Written in AssemblyScript, compiled to WebAssembly, and optimized for speed.

5 lines (4 loc) 146 B
import assert from "assert"; import { distance } from "../build/debug.js"; assert.strictEqual(distance("hello", "hollow"), 2); console.log("ok");