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.
nanocomponent
Advanced tools
Create performant HTML elements.
~2kb
var component = require('nanocomponent')
var html = require('bel')
var staticElement = component(html`
<div>heya</div>
`)
console.log(staticElement())
var cachedElement = component(function (foo) {
return html`
<div>${foo}</div>
`
})
console.log(cachedElement())
var politeElement = component({
placeholder: function () {
return html`
<p>lol not loaded yet</p>
`
},
render: function () {
return html`
<p>HOW'S IT GOING CHAP</p>
`
}
})
console.log(politeElement())
var widgetElement = component({
onload: function () {
},
onunload: function (el) {
},
onupdate: function (foo, bar) {
// do stuff with new arguments
},
render: function (foo, bar) {
return html`
<p>lol not loaded yet</p>
`
}
})
console.log(widgetElement())
Create a render function for a component based depending on the arguments that are passed in:
$ npm install nanocomponent
FAQs
Native DOM components that pair nicely with DOM diffing algorithms
The npm package nanocomponent receives a total of 417 weekly downloads. As such, nanocomponent popularity was classified as not popular.
We found that nanocomponent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 30 open source maintainers 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.