Gathering detailed insights and metrics for fuzzyset-obj
Gathering detailed insights and metrics for fuzzyset-obj
Gathering detailed insights and metrics for fuzzyset-obj
Gathering detailed insights and metrics for fuzzyset-obj
An extension module for fuzzyset.js that allows you to key on objects and do some other neat stuff.
npm install fuzzyset-obj
Typescript
Module System
Node Version
NPM Version
TypeScript (92.52%)
JavaScript (7.48%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Stars
17 Commits
2 Watchers
13 Branches
1 Contributors
Updated on Mar 22, 2023
Latest Version
1.0.0
Package Id
fuzzyset-obj@1.0.0
Unpacked Size
51.86 kB
Size
10.51 kB
File Count
10
NPM Version
6.10.2
Node Version
10.9.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
6
A simple upgrade to fuzzyset.js to allow usage of objects instead of strings only.
npm i fuzzyset-obj
When using this library, you can either create a FuzzySetContainer
that contains strings, or objects, but not both. All arguments will take both.
1import { FuzzySetContainer } from 'fuzzyset-obj'; 2 3const fuzzySet = new FuzzySetContainer(); 4 5// add an item to the set 6fuzzySet.add('Test'); 7fuzzySet.add('Apples are great'); 8fuzzySet.add('Bananas are great'); 9 10// search the set for one item 11const res = fuzzySet.getFirst('te'); // returns 'Test' 12 13// search the set for multiple items, getting them in descending order 14const res = fuzzySet.getAll('are great') // returns ['Apples are great', 'Bananas are great']
1import { FuzzySetContainer } from 'fuzzyset-obj'; 2 3interface Fruit { 4 fruit: string 5} 6 7const fuzzySet = new FuzzySetContainer<Fruit>({ key: 'fruit' }); 8 9// add an item to the set 10fuzzySet.add({ fruit: 'Banana' }); 11fuzzySet.add({ fruit: 'Blueberry' }); 12 13// search the set for one item 14const res = fuzzySet.getFirst('Banber'); // returns { fruit: 'Banana' } 15 16// search the set for multiple items, getting them in descending order 17const res = fuzzySet.getAll('Banber'); // returns [{ fruit: 'Banana' }, { fruit: 'Blueberry' }]
Feel free to contribute features by sending a pull request.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
53 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More