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.
@lion/progress-indicator
Advanced tools
A progress indicator that is easily styleable and accessible in all contexts
lion-progress-indicator
implements accessibility requirements for progress indicators.
import { html } from 'lit-html';
import './demo/custom-progress-indicator.js';
export default {
title: 'Others/Progress Indicator',
};
npm i --save @lion/progress-indicator
import { LionProgressIndicator } from '@lion/progress-indicator';
// or
import '@lion/progress-indicator/lion-progress-indicator.js';
<lion-progress-indicator></lion-progress-indicator>
LionProgressIndicator
is designed to be extended to add visuals. Implement the _graphicTemplate
method to set the rendered content, and apply styles normally.
class CustomProgressIndicator extends LionProgressIndicator {
static get styles() {
return [
css`
svg {
animation: spinner-rotate 2s linear infinite;
display: inline-block;
height: 48px;
width: 48px;
}
circle {
fill: none;
stroke-width: 3.6;
stroke: firebrick;
stroke-dasharray: 100, 28;
}
@keyframes spinner-rotate {
to {
transform: rotate(360deg);
}
}
`,
];
}
_graphicTemplate() {
return html`<svg viewBox="22 22 44 44">
<circle cx="44" cy="44" r="20.2" />
</svg>`;
}
}
export const customProgressDemo = () => html`
<custom-progress-indicator></custom-progress-indicator>
`;
FAQs
A progress indicator that is easily styleable and accessible in all contexts
The npm package @lion/progress-indicator receives a total of 278 weekly downloads. As such, @lion/progress-indicator popularity was classified as not popular.
We found that @lion/progress-indicator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.