Skip to content
An experimental lightning-fast Wasm-compiled levenshtein library.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.vscode misc: Initial commit May 22, 2019
assembly perf: Change algorithm to js-levenshtein's Jun 7, 2019
benchmark
src revert: Allocated memory should be retained and released Jun 7, 2019
static assets: Modified logo May 22, 2019
test
types misc: Port loader for portability May 22, 2019
.eslintrc.json misc: Rewrite codebase to TypeScript and set up linters May 22, 2019
.gitattributes
.gitignore git: Ignore built benchmark files Jun 6, 2019
.npmignore npm: Ignore benchmark folder Jun 6, 2019
LICENSE
README.md docs: Added logo to the README May 22, 2019
azure-pipelines.yml src: Barebones Benchmark (#2) Jun 6, 2019
package.json build(deps-dev): Bump typescript from 3.5.1 to 3.5.2 (#20) Jun 14, 2019
tsconfig.json misc: Port loader for portability May 22, 2019
yarn.lock

README.md

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_

You can’t perform that action at this time.