Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
domni-search
Advanced tools
A white-label search bar component for filtering DOM nodes based on content.
A search bar component for filtering DOM nodes based on content.
Include the script:
<script src="https://cdn.jsdelivr.net/npm/domni-search@0.1.0/dist/domni-search.min.js"></script>
Have a host input search element and a couple elements amongst which to search:
<input type="search" />
<ul>
<li>foo</li>
<li>foo bar</li>
<li>foo baz</li>
<li>bar baz</li>
</ul>
After the page is loades, construct an index of the searchable DOM elements:
var idx = new SearchIndex('div > li');
// Second parameter is a boolean for case sensitivity. Defaults to false (insensitive).
Optionally store some settings in an object:
var settings = {
delay: 500, // ms to delay search after typing
any: false // wether to look for elements that match any word
};
And then decorate your input as a Domni Search Bar:
var bar = new SearchBar('input[type=search]', idx, settings);
If you have found any problems with this module, please:
~bug
.We will make sure to take a look when time allows us.
If you wish to get that awesome feature or have some advice for us, please:
~proposal
.If you have spotted any enhancements to be made and is willing to get your hands dirty about it, fork us and submit your merge request so we can collaborate effectively.
FAQs
A white-label search bar component for filtering DOM nodes based on content.
We found that domni-search 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.