Pure javascript Youtube downloader
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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');
		}
	});
	
});