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.
reactive-html-element
Advanced tools
ReactiveHTMLElement
ReactiveHTMLElement is a lightweight and reactive web-component based framework developed by The Weird Science B.V..
Overview
ReactiveHTMLElement provides a framework for building web components that are reactive to data changes. It utilizes a doT.js template system that allows for dynamic rendering based on changes in the underlying data.
License
This software is licensed under the MIT License. See the LICENSE file for details.
Installation
There are three ways you can have RxEl in your project.
CDN
NPM
Source code
You can easily include RxEl in your project by adding the following script tags to your HTML file. Copy and paste these lines into the <head>
section of your HTML file.
<!-- Include ReactiveHTMLElement.js -->
<script src="https://cdn.jsdelivr.net/gh/weird-io/reactive-html-element@master/src/reactive/ReactiveHTMLElement.js"></script>
<!-- Include ReactiveHTMLElementTemplate.js -->
<script src="https://cdn.jsdelivr.net/gh/weird-io/reactive-html-element@master/src/reactive/ReactiveHTMLElementTemplate.js"></script>
Once you've included the scripts, you can start using the framework in your JavaScript code. Here's a simple example:
// Create an instance of ReactiveHTMLElement
const myElement = new ReactiveHTMLElement();
// Do something with myElement... How to build a web component
Make sure you have Node.js and npm installed: If you haven't installed Node.js and npm, you can download and install them from the official website: Node.js Downloads Open a terminal or command prompt: On macOS or Linux, you can use the Terminal. On Windows, you can use the Command Prompt or PowerShell. Navigate to your project directory: Use the cd command to navigate to the directory where you want to install the reactive-html-element package.
cd path/to/your/project
Execute the following command to install the reactive-html-element package and its dependencies: npm install reactive-html-element
Getting started
Create your reactive web component
FAQs
Lightweight and reactive web-component based framework
We found that reactive-html-element demonstrated a healthy version release cadence and project activity because the last version was released less than 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.