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.
@dile/icons
Advanced tools
This package contains some useful icons and a style declaration to customize the size and the icon color.
Import the icon you need:
import { infoIcon } from '@dile/icons';
Use the icon in a Lit template:
render() {
return html`
// Your component template
${ infoIcon }
`;
}
To create the icon styles easily you may use the CSS declaration provided in this package.
import { iconCss } from '@dile/icons';
Then, you can use the style declaration in your Lit component:
static get styles() {
return [iconCss, css`
:host {
--dile-icon-color: #fce;
}
`];
}
You can customize it using CSS Custom Properties.
Custom property | Description | Default |
---|---|---|
--dile-icon-size | Icon size | 24px |
--dile-icon-color | Icon color | #888 |
FAQs
Some SVG icons to use in web components.
The npm package @dile/icons receives a total of 204 weekly downloads. As such, @dile/icons popularity was classified as not popular.
We found that @dile/icons demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.