
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@audio/caf-decode
Advanced tools
Decode Core Audio Format (CAF) audio to PCM float samples.
Part of audio-decode.
npm i @audio/caf-decode
import decode from '@audio/caf-decode'
let { channelData, sampleRate } = await decode(cafBuffer)
import { decoder } from '@audio/caf-decode'
let dec = await decoder()
let result = dec.decode(chunk)
dec.free()
decode(src): Promise<AudioData>Whole-file decode. Accepts Uint8Array or ArrayBuffer.
decoder(): Promise<CAFDecoder>Creates a decoder instance.
dec.decode(data) — decode chunk, returns { channelData, sampleRate }dec.flush() — flush (returns empty — CAF is stateless)dec.free() — release resourceslpcm — 8, 16, 24, 32-bit signed integer (LE/BE), 32/64-bit float (LE/BE)alaw — G.711 A-lawulaw — G.711 mu-lawMIT
FAQs
Decode CAF (Core Audio Format) audio to PCM samples
We found that @audio/caf-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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.