1.2.0 • Published 2 years ago
the-torrent-project v1.2.0
torrent-pro
A Pure JavaScript Torrent Program
Installation
To install torrent-pro, you can use npm:
npm install -g torrent-proUsage
Download a Torrent
Download a torrent from a magnet link or a torrent file:
torrent-pro
Examples:
torrent-pro magnet:?xt=urn:btih:abcdef1234567890torrent-pro "file.torrent"Seed a Torrent
Seed a torrent file:
torrent-pro seed
Example:
torrent-pro seed myTorrentFile.torrentPrint Torrent Information
Print information about a .torrent file to stdout as JSON:
torrent-pro info
Example:
torrent-pro info myTorrentFile.torrentList Files in a Torrent
List all the files in a .torrent file:
torrent-pro ls OPTIONS
Options:
- -s: Show file sizes in bytes alongside file paths.
- -h: Show file sizes in human units when- -sis on.
Example:
torrent-pro ls myTorrentFile.torrent -shCreate a Torrent
Create a torrent file from a directory or file:
torrent-pro create -o outfile.torrent
If an output file isn't specified with -o, the torrent file will be written to stdout.
Examples:
torrent-pro create /path/to/myDirectory -o myTorrentFile.torrenttorrent-pro create /path/to/myDirectoryUsage Notes
- <torrent>can be a magnet link, a path to a .torrent file, or- -for STDIN.
Note: Ensure to replace the examples with appropriate file and directory paths or magnet links.