
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
icon-svg-component
Advanced tools
icon-svg webComponent support modify color and size,and support hover-color
icon-svg-component webComponent 支持svg图标的颜色,大小修改,hover颜色。
npm install icon-svg-component
| Attribute | Description | Type | Default |
|---|---|---|---|
| src | 必填,svg图标路径 | string | - |
| color | 图标颜色 | string | #000000 |
| hover-color | 鼠标悬停颜色 | string | #000000 |
| width | 图标宽度 | number|string | - |
| height | 图标高度 | number|string | - |
// 在框架中使用
// main.js eg: vue
import "icon-svg-component"
// 在组件中使用
<template>
<icon-svg src="**/*.svg" color="#000000" hover-color="#fff"></icon-svg>
</template>
// 在html中使用
<html>
<head>
<script src="icon-svg.min.js"></script> // 引入js文件
</head>
<body>
<icon-svg src="**/*.svg"></icon-svg>
<icon-svg src="**/*.svg" color="#000000" width="20" height="20" hover-color="#fff"></icon-svg>
<icon-svg src="**/*.svg" color="#000000" hover-color="#fff"></icon-svg> // 使用组件
</body>
</html>
FAQs
icon-svg webComponent support modify color and size,and support hover-color
We found that icon-svg-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.