Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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
The npm package attodom receives a total of 3 weekly downloads. As such, attodom popularity was classified as not popular.
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.