Skip to content
Pure javascript Youtube downloader
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
lib
test
LICENSE
Readme.md
package.json

Readme.md

Requirements

  • compress
  • sync

Installation

npm install youtube-js

Example

var yt = require('youtube-js');

yt.getInfo('http://www.youtube.com/watch?v=F6k8lTrAE2g', function(info) {
    info.download('/tmp/' + info.author + ' - ' + info.title, {
        fmt: '5',
        onData: function (len, size) {
            console.log('downloaded ' + len + ' bytes from ' + size);
        },

        onComplete: function (file) {
            console.log('download complete');
        }
    });

});
Something went wrong with that request. Please try again.