asidar-lib
v1.0.0
Published
convert youtube videos to mp3 files
Downloads
15
Maintainers
Readme
Installation
via npm
npm install asidar@latest
via yarn
yarn add asidar
Basic Usage
const asidar = require("../dist/index.js");
asidar.audioConverter("https://www.youtube.com/watch?v=WNeLUngb-Xg")
.then(proc => {
proc.on("end", () => {
console.log("finished at " + new Date())
})
})
API
checkFfmpeg()
checks whether FFMPEG is installed or not. returns:
{
found: boolean,
path: string,
}
audioConverter(url, options)
Attempts to download a video from the givenurl: string
,options
can have the following:
{
audioQuality?: number,
outPath?: string,
outFilename?: string,
filePrefix?: string,
}
returns FfmpegCommand