Skip to content

This is a rust implementation of the Rabin-Karp string searching algorithm wrapped into a neat npm package for use in node environments.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

AJTJ/rabin_karp_wasm

Repository files navigation

rabin-karp-wasm

A rust implementation of the rabin-karp rolling hash algorithm for sub-string searching in an npm package.

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

About

This is a rust implementation of the Rabin-Karp string searching algorithm wrapped into a neat npm package for use in node environments.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published