require('bittorrent-tracker') returns Client

This commit is contained in:
Feross Aboukhadijeh 2014-06-07 15:15:00 -07:00
parent 3009adea66
commit 15a6f3c715
8 changed files with 13 additions and 9 deletions

View File

@ -33,7 +33,7 @@ npm install bittorrent-tracker
To connect to a tracker, just do this: To connect to a tracker, just do this:
```js ```js
var Client = require('bittorrent-tracker').Client var Client = require('bittorrent-tracker')
var parseTorrent = require('parse-torrent') var parseTorrent = require('parse-torrent')
var fs = require('fs') var fs = require('fs')

View File

@ -1,2 +1,6 @@
exports.Client = require('./client') var Client = require('./client')
exports.Server = require('./server') var Server = require('./server')
module.exports = Client
module.exports.Client = Client
module.exports.Server = Server

View File

@ -1,4 +1,4 @@
var Client = require('../').Client var Client = require('../')
var fs = require('fs') var fs = require('fs')
var parseTorrent = require('parse-torrent') var parseTorrent = require('parse-torrent')
var portfinder = require('portfinder') var portfinder = require('portfinder')

View File

@ -1,4 +1,4 @@
var Client = require('../').Client var Client = require('../')
var fs = require('fs') var fs = require('fs')
var magnet = require('magnet-uri') var magnet = require('magnet-uri')
var portfinder = require('portfinder') var portfinder = require('portfinder')

View File

@ -1,4 +1,4 @@
var Client = require('../').Client var Client = require('../')
var fs = require('fs') var fs = require('fs')
var parseTorrent = require('parse-torrent') var parseTorrent = require('parse-torrent')
var portfinder = require('portfinder') var portfinder = require('portfinder')

View File

@ -1,4 +1,4 @@
var Client = require('../').Client var Client = require('../')
var portfinder = require('portfinder') var portfinder = require('portfinder')
var Server = require('../').Server var Server = require('../').Server
var test = require('tape') var test = require('tape')

View File

@ -1,4 +1,4 @@
var Client = require('../').Client var Client = require('../')
var fs = require('fs') var fs = require('fs')
var parseTorrent = require('parse-torrent') var parseTorrent = require('parse-torrent')
var portfinder = require('portfinder') var portfinder = require('portfinder')

View File

@ -1,4 +1,4 @@
var Client = require('../').Client var Client = require('../')
var portfinder = require('portfinder') var portfinder = require('portfinder')
var Server = require('../').Server var Server = require('../').Server
var test = require('tape') var test = require('tape')