
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
get-children-without-parent-selector
Advanced tools
A function that takes an element and returns all descendants of that element, but does not return those whose parent element has the supplied selector.
Type yarn add get-children-without-parent-selector
at the command line to add this to your project.
<div class="foo" id="alpha">
<div class="foo_bar" id="beta">
<div class="foo" id="gamma">
<div class="foo_bar" id="delta"></div>
</div>
<div class="qux">
<div class="foo_bar" id="epsilon"></div>
</div>
</div>
<div>
<div class="foo_bar" id="zeta"></div>
</div>
</div>
import getChildrenWithoutParentSelector from 'get-children-without-parent-selector';
const foo1 = document.getElementById('alpha');
const foo2 = document.getElementById('gamma');
// returns #beta, #epsilon and #zeta only
getChildrenWithoutParentSelector(foo1, '.foo_bar', '.foo');
// returns #delta only
getChildrenWithoutParentSelector(foo2, '.foo_bar', '.foo');
FAQs
A function that takes an element and returns all descendants of that element, but does not return those whose parent element has the supplied selector.
The npm package get-children-without-parent-selector receives a total of 1 weekly downloads. As such, get-children-without-parent-selector popularity was classified as not popular.
We found that get-children-without-parent-selector 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.