levenshtein-sse
v1.1.0
Published
Node.js bindings for the levenshtein-sse lib
Downloads
178
Maintainers
Readme
levenshtein-sse
Node.js bindings for the levenshtein-sse lib.
Calculates the Levenshtein distance in native code, as fast as it gets. Supports:
- Strings, Buffers, Typed Arrays, Arrays, etc.
- SIMD instructions support (when available)
- Fallback to a very fast JS implementation
- Async functions with callbacks or Promises
Usage
const levenshtein = require('levenshtein-sse');
levenshtein('levenshtein', 'frankenstein') // => 6
levenshtein.async('levenshtein', 'frankenstein', (err, result) => ...)
levenshtein.asyncPromise('levenshtein', 'frankenstein').then(result => ...)
License
MIT