
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Microscopic replacement for `document.querySelector` and `document.querySelectorAll`.
Microscopic replacement for document.querySelector and document.querySelectorAll.
Only 182 bytes minified.
In Node.js:
npm i sord
In the browser:
<script>function s(a,b,c,x,y,z,f,i){if(typeof a=='object'){x=a;y=b}else{x=document.body;y=a}z=x.querySelectorAll(y);if(f=typeof b=='function'?b:c)for(i=0;i<z.length;)f(z[i++],x);return z[0]}</script>
// From module
var s = require('sord')
// Find HTML element
s('#app')
// Find element inside el
s(el, 'input')
// Use callback instead of querySelectorAll
s('p', el => el.textContent = 'hello')
// Callback with root, default root is document.body
s(document, 'p', (el, root) => {
el.textContent = 'hello'
root.style.opacity = 0.5
})
ISC licensed. Enjoy!
FAQs
Microscopic replacement for `document.querySelector` and `document.querySelectorAll`.
We found that sord 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.