
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
node-youtube-audio
Advanced tools
To use this library you must install FFmpeg. See here for how to install FFmpeg on multiple operating systems or have a look at the FFmpeg documentation
# using yarn
yarn add node-youtube-audio@latest
# using npm
npm i node-youtube-audio@latest
const DownloadAudio = require("node-youtube-audio")
const url = "https://youtu.be/tu4HfcmMn1E"
new DownloadAudio(url)
.codec("flac")
.outputDirectory("./MyMusicFolder")
.fileExtension("flac")
.execute()
.then((filePath) => console.log("Result: " + filePath))
.catch(console.log)
const DownloadAudio = require("node-youtube-audio")
const url = "https://youtu.be/tu4HfcmMn1E"
new DownloadAudio(url)
.codec("flac")
.outputDirectory("./MyMusicFolder")
.fileName("MyAudio") // set fileName
.fileExtension("flac")
.noFFmpegLogProgress() // Disable FFmpeg log progress
.ffmpegOutputOptions(
"-b:a 1411k", // bitrate
"-ar 48000", // sampling rate
"-ac 2", // channels
"-af volume=1.1dB" // filter
)
.execute()
.then((filePath) => console.log("Result: " + filePath))
.catch(console.log)
.codec(param: string): thisSet the audio codec.
.ffmpegOutputOptions(...restParam: string[]): thisSet output options of FFmpeg. example:
.ffmpegOutputOptions(
"option1",
"option2 parameter2",
"option3 parameter3"
)
.fileName(param: string): thisSet the audio file name (Optional). Default uses the title from the video.
.outputDirectory(param: string): thisSet the location of the folder to store your audio.
.fileExtension(param: string): thisSet audio file extensions.
.noFFmpegLogProgress(): thisDisable FFmpeg log progress.
.execute(): Promise<string>Start processing.
To see the available audio codecs, see the FFmpeg documentation.
The codec I usually use:
FAQs
YouTube Audio Downloader
We found that node-youtube-audio 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
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain