
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
audio-decode
Advanced tools
Convert mp3/wav audio data to AudioBuffer.
const decode = require('audio-decode');
const buffer = require('audio-lena/mp3');
//as a callback
decode(buffer, (err, audioBuffer) => {});
//as a promise
decode(buffer).then(audioBuffer => {}, err => {});
let promise = decode(source, options?, callback?)
Decode source, based on options and fire callback when done, or resolve a promise if no callback passed. Source type can be: ArrayBuffer, ArrayBufferView, Buffer, Blob, File or data-uri string.
Possible options may include context property for web-audio-api context. If not defined, the audio-context is used.
Shipped by default:
To enable additional format, install it as a dependency npm install --save flac.js and require once require('flac.js').
Additional formats available:
FAQs
Decode audio data in node or browser
The npm package audio-decode receives a total of 202,235 weekly downloads. As such, audio-decode popularity was classified as popular.
We found that audio-decode demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.