0.2.7 • Published 3 years ago

deluge-client v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

deluge-client

A typescript wrapper for the Deluge Web JSON-RPC API using Async / Await

installing

npm install deluge-client

basic usage

import DelugeClient from 'deluge-client';

or

const DelugeClient = require('deluge-client');

const host = '/url/to/deluge_daemon';

const password = 'password for deluge_daemon';

const folder = 'folder where downloaded files should be saved to';

const deluge = new DelugeClient(host, password, folder);
await deluge.add('url to torrent magnet || torrent file url');

advanced features

for private indexes you can provide your own cookies to be used for the torrent download by adding the cookie object in the constructor

const cookie = { 'private-indexer.torrent': "my private cookie for indexer", 'private-two-indexer.torrent': "my second private cookie for indexer" }

const deluge = new DelugeClient(host, password, folder, cookies)

available methods

getHosts, isConnected, connect, add and getRecords

0.2.7

3 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago