
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@mat3e-ux/stars
Advanced tools
Display rating as stars (readonly)
★★★☆☆
<script type="module" src="https://unpkg.com/@mat3e-ux/stars"></script>
Install from npm:
npm i @mat3e-ux/stars
Simple one-time import:
import '@mat3e-ux/stars';
or "manual" registration:
import Stars from '@mat3e-ux/stars/component';
// same as previously
Stars.register();
// registering as a different tag:
Stars.register('just-stars');
<m3-stars max="5" current="4.62036"></m3-stars>
<m3-stars max="5" current="2.55" title="2.55"></m3-stars>
<m3-stars style="color: red" max="5" current="3.62036"></m3-stars>
You can override a default ★ and ☆ symbols, setting static properties before registering the component:
import Stars from "@mat3e-ux/stars/component";
Stars.empty = '💀';
Stars.full = '😄';
Stars.register();
Note: it will override symbols for all the <m3-stars>
tags.
Alternatively, you can reuse the component and create your own with overriden symbols like:
import '@mat3e-ux/stars'; // <m3-stars> works as before
import Stars from "@mat3e-ux/stars/component";
// <m3-emoji> works with the below symbols
Stars.empty = '💀';
Stars.full = '😄';
customElements.define('m3-emoji', class extends Stars {});
FAQs
Display rating as stars (readonly)
The npm package @mat3e-ux/stars receives a total of 8 weekly downloads. As such, @mat3e-ux/stars popularity was classified as not popular.
We found that @mat3e-ux/stars 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.