🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@kitsunetv/transmission

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitsunetv/transmission

Transmission RPC Client

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@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();
}

Keywords

transmission

FAQs

Package last updated on 21 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts