Skip to content

chetandhembre/node-bittorrent-location

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bittorrent-Location

get location of tracker available for torrent file or magnet link.

js-standard-style

Features

  • support torrent file and magnet link
  • gives latitude and longitude of tracker

Installation

npm i bittorrent-location --save

Test

npm test

Usage

var Bittorrent_Location = require('bittorrent-location')

var bittorrentLocation = new Bittorrent_Location('my.torrent')

bittorrentLocation.on('update', function (location) {
  console.log(location) //location of tracker
})

bittorrentLocation.on('error', function (err) {
  console.log(err) // error
})

setTimeout(function () {
  bittorrentLocation.stop()
}, 5000)

Limitation

  • stop() call wont exit program (need assistance to find issue)
  • location related api call are limited by iplocation which uses freegeoip.net.
  • currently only support udp trackers

Contributions

send PR if you want some changes in module. If you are having issue then create issue.

License

MIT

About

get location of torrent tracker

Resources

Stars

Watchers

Forks

Packages

No packages published