levenshtein-wasm
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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_

Package Sidebar

Install

npm i levenshtein-wasm

Weekly Downloads

5

Version

1.2.0

License

MIT

Unpacked Size

526 kB

Total Files

20

Last publish

Collaborators

  • kyranet