@nqbt/node
v0.1.3
Published
TypeScript qBittorrent WebUI API binding
Downloads
440
Readme
@nqbt/node
Node-focused helpers for nqbt.
Installation
npm install @nqbt/nodeLaunch qBittorrent
Use launchQBittorrent to directly open qBittorrent application.
import { launchQBittorrent } from '@nqbt/node';
const result = await launchQBittorrent();
console.log(result.command, result.pid);API
interface LaunchQBittorrentOptions {
executablePath?: string;
args?: string[];
cwd?: string;
env?: NodeJS.ProcessEnv;
}
interface LaunchQBittorrentResult {
platform: NodeJS.Platform;
command: string;
args: string[];
pid?: number;
attempts: string[];
}Platform behavior
macOS: usesopen -a qBittorrentby default.Windows: triesqbittorrent.exe, thenqbittorrent, then default install paths underProgram Files.Linux: triesqbittorrent.
To bypass auto detection, pass executablePath manually.
await launchQBittorrent({
executablePath: '/Applications/qBittorrent.app/Contents/MacOS/qBittorrent',
args: ['--profile=/tmp/qb']
});License
MIT License © 2025 XLor
