Skip to content

An experimental lightning-fast Wasm-compiled levenshtein library.

License

Notifications You must be signed in to change notification settings

kyranet/levenshtein-wasm

Repository files navigation

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_

About

An experimental lightning-fast Wasm-compiled levenshtein library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published