1.0.1 • Published 6 years ago

dhtc v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

A BitTorrent DHT crawler for Node.js.

npm version Dependencies Code Climate

Installation

Requires: Node.js 4.8.2 or greater.

$ npm install dhtc

Features

  • Simple API.
  • Node.js event emmiter based interface.
  • Discover infohashes on the DHT network.

Usage

Note: it make take several minuets for the crawler to find any infohashes.

const Crawler = require('dhtc')

const crawler = new Crawler({
  address: '0.0.0.0', 
  port: 6881
})

crawler.start()

crawler.on('infoHash', (hash, address, port) => {
  console.log(`${hash} from ${address}:${port}`)
})

License

MIT

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago