asidar-lib
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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 given url: string, options can have the following:
{
	audioQuality?:  number,
	outPath?:  string,
	outFilename?:  string,
	filePrefix?:  string,
}

returns FfmpegCommand

Package Sidebar

Install

npm i asidar-lib

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

7.82 kB

Total Files

7

Last publish

Collaborators

  • tareqdev