Torrent file checker: verify files and print graph.
Install
npm install -g torrent-check
Usage
Command Line
# show help
torrent-check -h
# show .torrent info
torrent-check movie-collection.torrent
# verify files and print graph
torrent-check movie-collection.torrent -d /path/to/movies-dir
# graph width 80; try append .!ut ext name if file not exists
torrent-check movie-collection.torrent -d /path/to/movies-dir -w 80 -e utf8 -x \!ut
Node Module
constTorrent=require('torrent-check');consttorrent=newTorrent('path/to/myfile.torrent','utf8');console.log(torrent.infoHash);console.log(torrent.meta);// torrent.ext = '.!ut';// torrent.on('end', function callback() {});(async()=>{constret=awaittorrent.checkFiles('path/to/myfiles/folder',false);console.log(ret);// or show graphawaittorrent.checkFilesGraph('path/to/myfiles/folder',80);})();