
Research
6 Malicious Packagist Themes Ship Trojanized jQuery and FUNNULL Redirect Payloads
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.
@nexucis/fuzzy
Advanced tools
This lib provides a fuzzy search. It's inspired from the work of Matt York on the repository fuzzy
npm install @nexucis/fuzzy
import Fuzzy from '@nexucis/fuzzy'
const fuz = new Fuzzy()
const list = ['lion', 'goat', 'mouse', 'dragon']
console.log(fuz.filter('li', list))
// [
// {rendered: 'lion', index: 0, score: 4, original: 'lion'},
// ]
//
import Fuzzy from '@nexucis/fuzzy'
const fuz = new Fuzzy({pre:'<b>', post:'</b>'})
const list = ['lion', 'goat', 'mouse', 'dragon']
console.log(fuz.filter('li', list))
// [
// {rendered: '<b>li</b>on', index: 0, score: 4, original: 'lion'},
// ]
//
import Fuzzy from '@nexucis/fuzzy'
const fuz = new Fuzzy({includeMatches: true})
const list = ['lion', 'goat', 'mouse', 'dragon']
console.log(fuz.filter('li', list))
// [
// {rendered: 'lion', index: 0, score: 4, original: 'lion', intervales:[{from:0, to:2}]},
// ]
//
import Fuzzy from '@nexucis/fuzzy'
const fuz = new Fuzzy({includeMatches: true})
const list = ['lion', 'goat', 'mouse', 'dragon']
console.log(fuz.filter('li', list), {includeMatches: false})
// [
// {rendered: 'lion', index: 0, score: 4, original: 'lion'},
// ]
//
Note: each option can be passed to the constructor or/and in each method exposed. The options passed in the method take precedence over the one passed in the contructor.
booleanfalseIndicates whether comparisons should be case-sensitive.
booleanfalseWhether the matches should be included in the result. When true, each record in the result set will include the indices of the matched characters. These can consequently be used for highlighting purposes.
booleanfalseWhether the result should be sorted
booleanfalseWhether the filtering should escape the HTML characters that can be found in each record in the result
string''Should be used to prefix each matched characters. Can be useful for the highlighting.
string''Should be used to suffix each matched characters. Can be useful for the highlighting.
Any contribution or suggestion would be really appreciated. Feel free to file an issue or send a pull request.
FAQs
small, standalone fuzzy search / fuzzy filter. browser or node
The npm package @nexucis/fuzzy receives a total of 20,788 weekly downloads. As such, @nexucis/fuzzy popularity was classified as popular.
We found that @nexucis/fuzzy 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
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.

Security News
The GCVE initiative operated by CIRCL has officially opened its publishing ecosystem, letting organizations issue and share vulnerability identifiers without routing through a central authority.

Security News
The project is retiring its odd/even release model in favor of a simpler annual cadence where every major version becomes LTS.