dhtc

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dhtc

Weekly Downloads

7

Version

1.0.1

License

MIT

Last publish

Collaborators

  • chrisburland