This package is a wrapper of node-transmission but writing in Typescript.
npm install node-transmission-typescript
import {Transmission, SettingsConfig} from node-transmission-typescript';
The module contains two class
To create the configuration for transmission.
new SettingsConfig(settings);
If dont pass arguments, create a default configuration. The configuration is an object with:
host: string;
port: number;
username: string;
password: string;
ssl: boolean;
url: string;
To create a new conection with transmission. The param is the configuration created above.
new Transmission(settings);
All functions returns a promise, so you can use async/await to improve the code and all functions have a typed return.