Stats

 Latest version : 1.0.3

 Last updated on 2018-03-22T12:58:47.303Z

 Keywords : torrent, trackers, tracker, util, utility

 Downloads :

  • 16 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme

add-trackers

npm npm downloads

Add trackers to exist torrent file.

Install with npm

npm install bencode
npm install add-trackers

Usage

const { addTrackers } = require('add-trackers');
const fs = require('fs');

Add trackers

let newFile = addTrackers(pathToFile,mainTracker,trackerList,replaceTrackers);
fs.writeFileSync(pathToFile,newFile);
  • pathToFile (string) - path to torrent file
  • mainTracker (string) - update main tracker
  • trackerList (array) - tracker list (if false use default list)
  • replaceTrackers (boolean) - replace trackers from tracker list

 Comments