UNPKG

qlevens

Version:

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

11 lines (10 loc) 205 B
<!DOCTYPE html> <html lang="en"> <head> <script type="module"> import { distance } from "./build/release.js"; document.body.innerText = distance("hello", "hollow"); </script> </head> <body></body> </html>