1.1.0 • Published 6 years ago

rtorrent-fast-resume v1.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

node-rtorrent-fast-resume

Module for adding rtorrent resume metadata to torrent files.

Installation

npm install -g rtorrent-fast-resume

Usage

CLI

rtorrent-fast-resume [base-directory] < plain.torrent > with_fast_resume.torrent
rtorrent-fast-resume [base-directory] plain.torrent [with_fast_resume.torrent]

Node

const fs = require('fs');
const fastResume = require('rtorrent-fast-resume');

const dataPath = '/path/to/data';
const torrent = fs.readFileSync('/path/to/input.torrent');

fastResume(torrent, dataPath).then((torrentWithFastResume) => {
    fs.writeFileSync('/path/to/output.torrent', torrentWithFastResume);
});

License

MIT