node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ยป

youtube-js

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');
		}
	});
	
});