
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
webm-to-wav-converter
Advanced tools
Browser's MediaRecorder API generate a audio/webm Blob which is not very useful if you want to do some processing on the audio. This is a simple JavaScript package to convert audio/webm audio recorded in browser into audio/wave format. It doesn't use any Worker to do the conversion.
Here is a quick Demo
import { WavRecorder } from "webm-to-wav-converter";
// or const { WavRecorder } = require("webm-to-wav-converter");
const wavRecorder = new WavRecorder();
// To start recording
wavRecorder.start();
// To stop recording
wavRecorder.stop();
// To get the wav Blob in 16-bit encoding and defualt sample rate
wavRecorder.getBlob();
// To get the wav Blob in 32-bit encoding
wavRecorder.getBlob(true);
// To get the wav Blob in 32-bit encoding with AudioContext options
wavRecorder.getBlob(true, { sampleRate: 96000 });
// To download the wav file in 32-bit encoding with AudioContext options
wavRecorder.download('myFile.wav',true, { sampleRate: 96000 });
audio/wave)
const { getWaveBlob } = require("webm-to-wav-converter");
// or import { getWaveBlob } from "webm-to-wav-converter";
const constraints = { audio: true, video: false };
try {
const stream = await navigator.mediaDevices.getUserMedia(constraints);
const mediaRecorder = new MediaRecorder(stream);
const data = [];
mediaRecorder.ondataavailable = e => e.data.size && data.push(e.data);
mediaRecorder.onstop = () => {
// For 16-bit audio
const wavBlob = getWaveBlob(data,false);
// For 32-bit audio
const wavBlob = getWaveBlob(data,true);
};
} catch (err) {
console.error(err);
};
const { downloadWav } = require("webm-to-wav-converter");
// or import { downloadWav } from "webm-to-wav-converter";
const constraints = { audio: true, video: false };
try {
const stream = await navigator.mediaDevices.getUserMedia(constraints);
const mediaRecorder = new MediaRecorder(stream);
const data = [];
mediaRecorder.ondataavailable = e => e.data.size && data.push(e.data);
mediaRecorder.onstop = () => {
// For 16-bit audio file
downloadWav(data,false);
// For 32-bit audio file
downloadWav(data,true);
};
} catch (err) {
console.error(err);
};
FAQs
JavaScript package to record and convert WAV audio
The npm package webm-to-wav-converter receives a total of 1,147 weekly downloads. As such, webm-to-wav-converter popularity was classified as popular.
We found that webm-to-wav-converter 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.