Skip to content

KitsuneTV/Transmission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@kitsunetv/transmission

A simple Transmission RPC client for Node.js, written in TypeScript!

Installation

$ yarn add @kitsunetv/transmission

Example Usage

import { Transmission } from "@kitsunetv/transmission";

const transmission = new Transmission({
  host: "http://example.com:9091",
  // path default is "/transmission/rpc"
  path: "/transmission/rpc",
  // if your transmission server is authed...
  username: "username",
  password: "password",
});

// Get session token from transmission RPC
await transmission.authenticate();

// get all torrents
const torrents = transmission.getTorrents();

// start all torrents
for (const torrent of torrents) {
  torrent.start();
}

About

Transmission RPC Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published