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-in-file methods for NodeJS.
tiny-fsearch
exposes both a native Node module and cross-platform grep functionality. It can be installed via:
npm install tiny-fsearch
The module consists of both "sycnhronous" and "streamed" match outputs for single find-in-file queries.
// ES Syntax (other require is fine for CommonJS)
import { FSearch } from 'tiny-fsearch';
// predicates/resources
const predicate: string = 'search value';
const filePath: string = 'file-to-search';
/// Synchronous File-Searching
FSearch.Sync.query(predicate, { filePath });
FSearch.Sync.grep(predicate, { filePath });
/// Streamed File-Searching
FSearch.Stream.grep(predicate, { filePath });
interface FSearch.Options {
limit?: number;
isRegExp?: boolean;
ignoreCase?: boolean;
matchWholeWord?: boolean;
}
interface FSearch.Result {
line: number;
column: number;
content: string;
}
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.