transmission-rpc-client
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

transmission-rpc-client

Simple client for calling transmisison torrent client using it's own RPC

Usage

Initializing client:

import {TransmissionClient} from "./Client";

const client = new TransmissionClient({
    host: "<your transmission hostname>",
    isHttps: false //(use https protocol. this parameter is optional)
});

Calling transmission:

client.getTorrents(GetTorrentRequest.of({fields: ["id", "name", "downloadDir"], ids: [1] || undefined}))
.then(res => console.log(res))

All API implemented here are described in transmission RPC docs

Package Sidebar

Install

npm i transmission-rpc-client

Weekly Downloads

0

Version

1.4.3

License

none

Unpacked Size

66.9 kB

Total Files

63

Last publish

Collaborators

  • vasyl.b