
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
simple_regex_search
Advanced tools
A very light-weight and simple NodeJS module to build regex search query .
A very light-weight and simple NodeJS module to build regex search query .
Download the module or install using npm
npm install --save simple_regex_search
The module exposes a function that takes two parameters , search phrase and combined. the search phrase must be a single string or an array of the search phrases , the combined is a boolean that specify if the regex search must meet all the words or any.
If the combined flag is true , all returned regex would require all search phrases to exist for the regex search to return true.
The default value of the combined flag is false.
let search = require('simple_regex_search');
Single phrase | String
would return the regex syntax /^(?=.\btest\b).$/
let example = search('test', true);
would return true
example('test');
would return false
example('something else');
Many Phrases | Array
would return the regex syntax /^(?=.\bvalueA\b)(?=.\bvalueB\b).*$/
let example2 = search(['valueA', 'valueB'], true)
;
would return false
example2('test');
would return true
example2('The order of ValueB and ValueA is not important');
FAQs
A very light-weight and simple NodeJS module to build regex search query .
We found that simple_regex_search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.