Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
audioworklet-polyfill
Advanced tools
AudioWorklet polyfill using the legacy ScriptProcessor API.
audioworklet-polyfill
is a tiny JavaScript library that brings AudioWorklet support to all major browsers: Chrome, Firefox, Safari and Edge. It uses ScriptProcessorNode under the hood, and runs your Worklet code in an isolated scope on the main thread (read why).
Basic Demo | DSP Playground Demo |
---|
New to AudioWorklet? Check out this great Introduction and Demos or the AudioWorklet Examples.
<script src="audioworklet-polyfill.js"></script>
<!-- or: -->
<script src="https://unpkg.com/audioworklet-polyfill/dist/audioworklet-polyfill.js"></script>
Or with a bundler:
import 'audioworklet-polyfill';
... or with ES Modules on the web:
import('https://unpkg.com/audioworklet-polyfill/dist/audioworklet-polyfill.js');
This polyfill is intended to be a bridging solution until AudioWorklet is implemented across all browsers. It's an improvement over ScriptProcessorNode even though that's what it uses under the hood, because code written using this polyfill is forwards-compatible: as native support improves, your application improves. This polyfill offers a simple, future-proof alternative to ScriptProcessorNode without introducing Workers or relying on shared memory.
@jariseon has implemented a similar polyfill that uses Web Workers for audio processing.
FAQs
AudioWorklet polyfill using the legacy ScriptProcessor API.
The npm package audioworklet-polyfill receives a total of 559 weekly downloads. As such, audioworklet-polyfill popularity was classified as not popular.
We found that audioworklet-polyfill 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.