levenshtein-wasm
v1.2.0
Published
Lightning-fast Wasm-compiled levenshtein library.
Maintainers
Readme
Levenshtein Wasm
🚀 Experimental Wasm library made using AssemblyScript to convert strict TypeScript into fast and optimized Web Assembly binaries.
Examples
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'));
// -> 2Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request!
Author
levenshtein-wasm © kyranet, released under the MIT License. Authored and maintained by kyranet.
