You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

string-searching

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-searching

String searching algorithms.

Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

string-searching Build Status

Features:

Fast string searching algorithms, including:

Installation:

$ npm install --save string-searching

Syntax

stringSearching.boyer_moore(text, pattern[, recursive])

Example:

const stringSearching = 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 = stringSearching.boyer_moore(text, pattern);

// or passing true to search all patterns.
const indexes = stringSearching.boyer_moore(text, pattern, true);

Keywords

boyer-moore

FAQs

Package last updated on 26 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts