Latest version : 1.0.3

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

 Keywords : torrent, trackers, tracker, util, utility

 Downloads :

  • 25 in Last Month

 Links :


No examples found for this package



npm npm downloads

Add trackers to exist torrent file.

Install with npm

npm install bencode
npm install add-trackers


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

Add trackers

let newFile = addTrackers(pathToFile,mainTracker,trackerList,replaceTrackers);
  • 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