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.
@exercism/active-background
Advanced tools
react
>= 16.13.1react-dom
>= 16.13.1Using create-react-app
's boiler-plate starter:
import * as React from 'react'
import logo from './logo.svg'
import './App.css'
import { ActiveBackground, Confetti } from '@exercism/active-background'
function App() {
return (
<div className="App">
<header className="App-header">
<ActiveBackground pattern={Confetti}>
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</ActiveBackground>
</header>
</div>
)
}
export default App
You can extend the background with your own canvas based animation by creating a class which fulfills the following:
export interface IActiveBackgroundPatternConstructor {
new (
canvas: HTMLCanvasElement,
options: ActiveBackgroundPatternOptions
): IActiveBackgroundPattern
}
export interface IActiveBackgroundPattern {
render(): void
start(): void
stop(): void
}
This library was originally created by @neenjaw. It is maintained by @neenjaw, @sleeplessbyte and the Exercism team. See the GitHub contributors graph for a full list of contributors.
FAQs
Give your elements an animated canvas background!
The npm package @exercism/active-background receives a total of 4 weekly downloads. As such, @exercism/active-background popularity was classified as not popular.
We found that @exercism/active-background demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.