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.
yet another small DOM component library, < 1kb
el(tagName|Element [, attributes [,children ]] ): HTMLElement
svg(tagName|Element [, attributes [,children ]] ): SVGElement
where
attributes: {name: value, update: updateFunction}
children: {number|string|Node|Array<children>}
updateFunction: (this:Node, value:* [, key:* [, object:*]]): void
Synthetic events are used when the first letter of the event name is capitalised
el('h1', {onclick: handler}, 'click me')
el('h1', {onClick: handler}, 'click me')
list(parent:Node, factory, options): List
where
factory: function(value:* [, key:* [, object:*]]): Node
options.before: Node
options.after: Node
options.key: string | function([*], [number], [Array]): string
List: {parent, before, after, factory, key, map:{key:Node}, update}
list.update: function([*], [number], [Array]): List
list
creates a List
object with an update method that can update the parent children to match a data Array
import {el, svg, list} from 'attodom'
var ol = el('ol'),
bullets = list(ol, (v, i) => el('li', i + ':' + v))
bullets.update(['a', 'b'])
// <ol><li>1:a</li><li>2:b</li></ol>
FAQs
yet another small DOM component library
We found that attodom 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.