🚀 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
- 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!
levenshtein-wasm © kyranet, released under the MIT License. Authored and maintained by kyranet.