Options
All
  • Public
  • Public/Protected
  • All
Menu

utorrent-web-api

utorrent-web-api

A powerful and complete implementation of the uTorrent Web API. It is compitable with both Javascript and Typescript!

Example

import { uTorrent } from "utorrent-web-api";

// Create an instance of the client
var utorrent = new uTorrent(host, port, username, password);

// Add a torrent via URL
utorrent.addUrl(magnetOrUrl).then((hash) => {
    console.log("The torrent's hash is:", hash);
});

// List all torrents
utorrent.list().then((result) => {
    console.log("Number of torrents:", result.torrents.length);
});

Installation

npm i utorrent-web-api

Documentation

Full Documention can be found here

Generated using TypeDoc