Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 2.59 KB

README.md

File metadata and controls

60 lines (49 loc) · 2.59 KB

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'));
// -> 2

Contributing

  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!

Author

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

Github kyranet - Twitter @kyranet_