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.
component-badge
Advanced tools
Based on @timoxley's idea and made for @ForbesLindesay's website
npm install component-badge
badge([count, [options]])
returns a String representing a SVG image.
count
is the number shown under the logo ("1337 available"). If left out the subline comletely vanishes.
options
is an object that takes these params including their default values.
scale: 1
subtitlePos: "bottom"
subtitleFill: "#939393"
backgroundFill: "none"
titleFill: "#000000"
circleFill: "#353535"
leftAnnulusFill: "#353535"
rightAnnulusFill: "#939393"
badge.load(path)
loads a new template.
path
is the path to the template to be loaded.
var badge = require("component-badge");
console.log(badge(1337, 1.5)); // <svg width="720px" height="180px">...
badge.load("./myNewLogo.svg");
Fun Fact: The vector graphic was generated by JavaScript.
FAQs
Component Badge Generator
The npm package component-badge receives a total of 1 weekly downloads. As such, component-badge popularity was classified as not popular.
We found that component-badge 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.