Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
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
The npm package didyoumean3 receives a total of 676 weekly downloads. As such, didyoumean3 popularity was classified as not popular.
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.