string-searching

0.1.4 • Public • Published

string-searching Build Status

Features:

Fast string searching algorithms, including:

Installation:

$ npm install --save string-searching

Syntax

.boyer_moore(text, pattern[, recursive])

Example:

const ss = require("string-searching");
const text = "HERE IS A SIMPLE EXAMPLE";
const pattern = "EXAMPLE";
 
// search first index of pattern (like the String.prototype.indexOf() do).
const index = ss.boyer_moore(text, pattern);
 
// or passing true to search all patterns.
const indexes = ss.boyer_moore(text, pattern, true);

Package Sidebar

Install

npm i string-searching

Weekly Downloads

5

Version

0.1.4

License

none

Last publish

Collaborators

  • nonoroazoro