0.2.0 • Published 4 years ago

kkito-transmission-rpc v0.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

transmission rpc client

Build Status npm version

transmission daemon client

the rpc client by using node https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt

how to use

import { Transmission } from './src/transmission'
// port and auth are optional
const t = new Transmission({ host: '192.168.x.x' });
// const token = await t.getToken();
const result = await t.getTorrents();
// tslint:disable-next-line:no-console
// console.log(token);

// const result = await t.getTorrentInfo("1");
// const result = await t.getTorrents()
// const result = await t.startTorrent('./jYAlukcm.torrent' , '/mnt/sda1/');
// const result = await t.removeTorrent(12);
// tslint:disable-next-line:no-console
console.log(result);

install

npm install -g kkito-transmission-rpc

or install local npm install -g .

test env

use (https://hub.docker.com/r/linuxserver/transmission/)https://hub.docker.com/r/linuxserver/transmission/ for test env

use in cli

host=192.168.123.36 port=9091 node-transmission list

host=192.168.123.36 port=9091 node-transmission list-working

host=192.168.123.36 port=9091 node-transmission add /tmp/my.torrent /mnt/sdc/path

0.2.0

4 years ago

0.1.0

4 years ago

0.0.50

4 years ago

0.0.34

5 years ago

0.0.32

5 years ago

0.0.30

5 years ago

0.0.28

5 years ago

0.0.26

5 years ago

0.0.24

5 years ago

0.0.18

6 years ago

0.0.16

6 years ago

0.0.12

6 years ago

0.0.10

6 years ago

0.0.8

6 years ago