A powerful and complete implementation of the uTorrent Web API. It is compitable with both Javascript and Typescript!
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);
});
npm i utorrent-web-api
Full Documention can be found here
Generated using TypeDoc