Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@a2000/icons
Advanced tools
Readme
npm install @a2000/icons
<!DOCTYPE html>
<html>
<head>
<title>Quick Start</title>
<meta charset="UTF-8" />
</head>
<body>
<!-- Use web components in your HTML like regular built-in elements. -->
<a2k-icon icon="{iconId}" />
<!-- a2k web components use standard JavaScript modules. -->
<script type="module">
import "@a2000/icons/a2k-icons.js";
</script>
</body>
</html>
Icon | Id |
---|---|
Documents | documents-icon |
Help | help-icon |
Network | network-icon |
twitter-icon | |
Windows | windows-icon |
GitHub | github-icon |
Cross | cross-icon |
Internet | internet-icon |
Info | info-icon |
Shut Down | shut-down-icon |
Chevron | chevron-icon |
The size of the icon is determined by its inherited font-size. To change the font-size, adjust the font-size of its containing element.
Example:
<span className="large-icon">
<a2k-icon icon="{iconId}" />
Icon Label
</span>
.large-icon {
font-size: 2rem;
}
If you're using Vite for your development environment, you may come across the following issue:
Uncaught TypeError: Failed to construct 'URL': Invalid URL at A2kIcon.js
This is due to a known issue with Vite. It appears that import.meta.url
is not made available to dependencies that have been optimised when developing. The behaviour seems to work as normal when building the prod bundle.
To prevent this issue, we need to ask Vite to not optimise this particular package. Add the following to your vite.config.js
file:
optimizeDeps: {
exclude: ["@a2000/icons"],
},
```.
FAQs
A2K Icons
We found that @a2000/icons 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.