Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign 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

Fast string searching algorithms.

latest
Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
14
-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

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);

Keywords

search

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