<commit_before>## Examples

	var yt = require('../lib/youtube');

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

## Requirements

* compress.
* sync.<commit_msg>changing readme (add installation paragraph)<commit_after>## Requirements

* compress
* sync

## Installation

	npm install youtube-js

## Examples

	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');
			}
		});
		
	});
{'fraction_non_alphanumeric': 0.18455366098294884, 'fraction_numerical': 0.00802407221664995, 'mean_word_length': 3.1069958847736627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2693160', 'n_tokens_mistral': 396, 'n_tokens_neox': 341, 'n_words': 65}