Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-rtorrent-scgipublic

    node-rtorrent

    Installation

    Available via npm:

    $ npm install node-rtorrent-scgi

    Or via git:

    $ git clone git://github.com/kinabcd/node-rtorrent.git node_modules/node-rtorrent-scgi

    API

    Connection

    Connect rTorrent with TCP/IP:

    conn = rtorrent({host:'localhost', port:5000});

    Connect rTorrent with Socket:

    conn = rtorrent({path:'/tmp/torrent.sock'});

    SendCall

    Makes a request. Return the response from rTorrent.

    conn.SendCall(methodName, params, function(err, data) {
        // Do something... 
    });

    Details

    Get the list of torrents.

    conn.Details(function(list) {
        console.log(list);
    });

    Example

    rtorrent = require('node-rtorrent-scgi');
    conn = rtorrent({host:'localhost', port:5000});
    conn.Details(function(list) {
        console.log(list);
    });

    License

    GNU Lesser General Public License v3

    install

    npm i node-rtorrent-scgi

    Downloadsweekly downloads

    2

    version

    0.0.8

    license

    LGPL-3.0

    repository

    github.com

    last publish

    collaborators

    • avatar