Socket
Socket
Sign inDemoInstall

bittorrent-location

Package Overview
Dependencies
72
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bittorrent-location

get location of tracker for torrent


Version published
Weekly downloads
0
Maintainers
1
Install size
4.82 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 31 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc