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.
@acusti/matchmaking
Advanced tools
Intuitive approximate string matching (i.e. fuzzy searches). See the tests to understand its behavior and evaluate if it’s what you are looking for.
npm install @acusti/matchmaking
# or
yarn add @acusti/matchmaking
matchmaking
exports two functions: getBestMatch
and sortByBestMatch
.
Import them by name:
import { getBestMatch, sortByBestMatch } from '@acusti/textual';
Both functions take the same payload:
type Payload = {
items: Array<string>;
text: string;
};
However, sortByBestMatch
returns an array of items matching the one
passed in but sorted by how close they match the passed-in text
, while
getBestMatch
just returns the text of the single closest match found
(i.e. sortByBestMatch(payload)[0]
);
FAQs
Intuitive approximate string matching (i.e. fuzzy searches)
We found that @acusti/matchmaking demonstrated a healthy version release cadence and project activity because the last version was released less than 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.