
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
macos-system-audio-recorder
Advanced tools
markdown
A Node.js library to record system audio on macOS using ScreenCaptureKit.
npm install macos-system-audio-recorder
import { SystemAudioRecorder } from "macos-system-audio-recorder";
// Create recorder instance
const recorder = new SystemAudioRecorder();
// Start recording
recorder.start();
// Get audio format details
const audioDetails = await recorder.getAudioDetails();
console.log("Audio format:", audioDetails);
// Get audio stream
const stream = recorder.getStream();
stream.on("data", (data) => {
// Handle raw PCM audio data
console.log("Received audio data:", data.length, "bytes");
});
// Stop recording
recorder.stop();
SystemAudioRecorder
Main class to handle system audio recording.
start()
: Start recording system audiostop()
: Stop recordinggetAudioDetails()
: Get audio format detailsgetStream()
: Get readable stream of raw PCM audio dataThe getAudioDetails()
method returns an object with:
interface AudioDetails {
channels: 1 | 2; // Number of audio channels
bytesPerFrame: 4 | 8; // Bytes per audio frame
bitsPerChannel: 16 | 32; // Bits per channel
formatFlags: number; // Audio format flags
sampleRate: 48000 | 44100 | 32000; // Sample rate in Hz
formatID: number; // Audio format ID
}
The library throws these custom errors:
SystemAudioRecorderError
: Base error classSystemAudioRecorderNotStartedError
: When trying to access recorder before startingSystemAudioRecorderSubprocessError
: When the Swift subprocess encounters an errornpm install
cd swift && ./build.sh
npm run build
npm run dev
MIT
Contributions welcome! Please read the contributing guidelines before submitting PRs.
Developed by Victor Fernandez (@victor141516)
FAQs
A library to record system audio on macOS
The npm package macos-system-audio-recorder receives a total of 7 weekly downloads. As such, macos-system-audio-recorder popularity was classified as not popular.
We found that macos-system-audio-recorder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.