
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Small DOM utilities.
npm install corleone -S
import dom from 'corleone'
dom.show(dom.query('.container'))
show
Shows a given DOM node.
dom.show(dom.query('.container'))
hide
Hides a given DOM node.
dom.hide(dom.query('.container'))
create
Create a DOM node from a string.
const node = dom.create('<div class="container"></div>')
remove
Removes a given DOM node from the DOM tree.
dom.remove(dom.query('.container'))
query
Alias for document.querySelector
. If rootEl
is passed,
rootEl.querySelector
is used.
const containerNode = dom.query('.container', [rootEl])
queryAll
Alias for document.querySelectorAll
. If rootEl
is passed,
rootEl.querySelectorAll
is used.
const imgNodes = dom.queryAll('img', [rootEl])
offset
Returns coordinates of element relative to document.
const coords = dom.offset(el)
closest
Returns closest parent that matches selector.
const el = dom.closest(el, '.foo')
matches
Work as an alias for Element.prototype.matches
.
const doesMatch = dom.matches(el, '.red')
caiogondim.com · GitHub @caiogondim · Twitter @caio_gondim
FAQs
DOM utilities
We found that corleone 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 Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.