The Aria2 RPC library written in TypeScript running on Node.js.
$ npm i aria2rpcimport { Aria2Client } from 'aria2rpc'; const client = new Aria2Client({ secret: 'your secret' }); (async () => { const response = client.getGlobalStat(); console.log(response.result); // Aria2 Global Status })()