0.1.2 • Published 11 years ago

itty-bitty-torrent v0.1.2

Weekly downloads
25
License
-
Repository
-
Last release
11 years ago

node-bittorent

A simple bittorrent client extracted from the awesome peerflix, built for Node.

Install

npm install itty-bitty-torrent

Example

var Torrent = require('itty-bitty-torrent');
var downloadLocation = __dirname + '/download/';
var torrent = __dirname + '/IAmALegalTorrent.torrent'; // or http URL

var client = new Torrent(torrent, downloadLocation, function(err){
	if (!err) client.download();
	setInterval(function(){
		console.log(Math.round(client.speed()) / 1000);
	}, 500);
});

client.on('finished', function(){
	// The torrent has finished downloading.
});

// stop our torrent downloading & seeding
client.stop();
0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago