Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
didyoumean3
Advanced tools
1.0.0 beta, i will update in future.
notice: The algorithm is a bit weird on strings less than 2 in length, and I'm still looking for a solution
type Options = {
ignore?: boolean, // 'A' -> 'a'
trim?: boolean, // ' A' -> 'A'
normalize?: boolean, // '😄' -> '😄'.normalize()
key?: string | GetVal // string key when you pass a object list, or a function with param the object item
}
didyoumean3(input: string, list: string[] | object[], options: Options)
for example:
import { didyoumean3 } from 'didyoumean3'
let input = 'insargrm'
let list = ['dasd', 'facebook', 'twitter', 'instagram', 'linkedin'];
didyoumean3(input, list)
// output
// {
// first: 'instagram',
// matches: [{"score": 0.35294117647058826, "target": "instagram"}, {"score": 0.125, "target": "linkedin"}...]
// }
// also you can pass a object list
list = [{id: 'facebook'}, {id: 'twitter'}, ...]
didyoumean3(input, list, {key: 'id'})
FAQs
🚀 The fastest and easiest「didyoumean」in the universe via levenshtein algorithm
We found that didyoumean3 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.