1.1.1 • Published 5 years ago

youtube-dl.js v1.1.1

Weekly downloads
8
License
ISC
Repository
github
Last release
5 years ago

youtube-dl.js

Build Status npm version

Installation

Requirements

FFmpeg has to be installed to PATH

To install youtube-dl.js run npm install youtube-dl.js --save

To update the youtube-dl binary, run npm run updateytdl or run the setup script (node setup.js)

Usage

const ytdl = require("youtube-dl.js");

let url = "https://youtu.be/q5weS3aY-Qc",
    filename = `${new Date().getTime()}.%(ext)s`,
    args = ["-o", filename, "-x", "--audio-format=mp3", "--restrict-filenames", "--external-downloader=ffmpeg", "--audio-quality=96k"];

ytdl(url, args)
  .then(data => {
    console.log(data);
  })
  .catch(err => {
    console.error(err);
  });

Warning

If it works, it ain't stupid.

I'm a noob. Don't judge me. Pullrequests are very welcome!

1.1.1

5 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago