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

0.6.0 • Public • Published

rabin-karp-wasm

A rust implementation of the rabin-karp rolling hash algorithm for sub-string searching repo: https://github.com/AJTJ/rabin_karp_wasm

usage:

import { find_matches } from "rabin-karp-wasm";

// it will return an array of indices where substring matches begin
let result = find_matches(STRING_PATTERN_TO_SEARCH_FOR, STRING_TO_SEARCH_WITHIN);

TODO:

  • Currently building out support for multi-character graphemes. It currently only supports single-character graphemes, i.e. the english alphabet.

The original experiment (Now deprecated) began here: https://github.com/AJTJ/rabin_karp

Readme

Keywords

none

Package Sidebar

Install

npm i rabin-karp-wasm

Weekly Downloads

0

Version

0.6.0

License

none

Unpacked Size

65.4 kB

Total Files

5

Last publish

Collaborators

  • thelonious_joyce