mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 02:46:29 +00:00
require('bittorrent-tracker') returns Client
This commit is contained in:
parent
3009adea66
commit
15a6f3c715
@ -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')
|
||||||
|
|
||||||
|
8
index.js
8
index.js
@ -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
|
||||||
|
@ -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')
|
||||||
|
@ -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')
|
||||||
|
@ -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')
|
||||||
|
@ -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')
|
||||||
|
@ -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')
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user