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.
@teropa/oscilloscope
Advanced tools
Visualises the waveform of any Web Audio node. Uses simple edge triggering to stabilise the waveform.
npm install @teropa/oscilloscope
ES Modules, CommonJS modules, and an UMD build are all provided.
Create an oscilloscope and attach it to an existing <canvas>
element, then connect it to an AudioNode and start visualising:
import { Oscilloscope } from "@teropa/oscilloscope";
let oscilloscope = new Oscilloscope(myCanvasElement, audioContext, {
fftSize: 4096,
});
oscilloscope.connect(myAudioNode);
oscilloscope.start();
The canvas visualisatioon will be sized according to the natural (CSS-based) size of the canvas.
The third argument to the constructor supports the following options:
fftSize
- number - the FFT size of the backing AnalyserNode. This affects how large the visualised time window is.edgeThreshold
- number - the threshold that will trigger the oscilloscope's renderingedgeTrigger
- rising
or falling
- whether the edge triggering occurs when the signal rises above, or drops below, the edge threshold.backgroundColor
- string - the (CSS) color to use for the visualisation backgroundlineColor
- string - the (CSS) color to use for the signal linelineWidth
- number - how thick to draw the signal lineFAQs
An oscilloscope for Web Audio nodes
We found that @teropa/oscilloscope 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
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.