Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
tiny-fsearch
Advanced tools
Fast and Simple File Search for NodeJS. Versatile find-in-files/search methods that can take in a range of options.
tiny-fsearch
is a native Node module available via NPM. It can be installed with.
$ npm install --save tiny-fsearch
The module consists of two available functions and a promisified alternative.
const fsearch = require('tiny-fsearch');
/// Single-threaded query (returns all found matches).
fsearch.sync(source, predicate, options);
/// Multi-threaded query stream (returns an async iterator).
fsearch.stream(source, predicate, options);
/// Wraps `stream` in a promise wrapper for results.
fsearch.concurrent(source, predicate, options);
source [string]
A file or directory in which to search in.
predicate [string|RegExp]
The string or RegExp to use for matching.
options [fsearch.IOptions]
The available options exposed for setting different search parameters are:
interface fsearch.IOptions {
exclude: string[]; // File-globs to exclude from searching (default: [])
ignoreCase: boolean; // Run a case-insensitive match (default: true)
matchWholeWord: boolean; // Wraps searches in a word-group boundary (default: false)
}
Matched results with be in the form of:
interface fsearch.IMatch {
readonly line: number;
readonly column: number;
readonly length: number;
readonly filePath: number;
}
FAQs
A small and versatile file-search library
The npm package tiny-fsearch receives a total of 0 weekly downloads. As such, tiny-fsearch popularity was classified as not popular.
We found that tiny-fsearch 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.