{"repo":"sonnyp/aria2.js","free":true,"listed":false,"github":"https://github.com/sonnyp/aria2.js","clone":"git clone https://github.com/sonnyp/aria2.js.git","description":"JavaScript library for aria2, \"The next generation download utility.\"","language":"JavaScript","stars":646,"topics":["browser","nodejs","javascript","aria2","websocket","http","bittorrent","dht","magnet","ftp"],"license":"ISC","category":"networking-infra","readme_excerpt":"aria2.js JavaScript library for aria2, \"The next generation download utility.\" - Introduction - Getting started - Usage - open - close - call - multicall - batch - listNotifications - listMethods - events Introduction aria2.js controls aria2 via its JSON-RPC interface and features - Node.js and browsers support - multiple transports - HTTP - WebSocket - promise API - no 3rd party dependency See aria2 methods and aria2 notifications. ↑ Getting started Start aria2 with rpc, example: aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all Install aria2.js ↑ Usage In the browser you can also use node modules/aria2/bundle.js directly in and window.Aria2 . Aria2 extends EventTarget. Default options match aria2c defaults and are secret is optional and refers to --rpc-secret. If you define it, it will be added to every call for you. If the WebSocket is open (via the open method) aria2.js will use the WebSocket transport, otherwise the HTTP transport. The \"aria2.\" prefix can be omitted from both methods and notifications. ↑ open aria2.open() opens the WebSocket connection. All subsequent requests will use the WebSocket transport instead of HTTP. ↑ close aria2.close() closes the WebSocket connection. All subsequent requests will use the HTTP transport instead of WebSocket. ↑ call aria2.call() calls a method. Parameters are provided as arguments. Example using addUri method to download from a magnet link. ↑ multicall aria2.multicall() is a helper for system.multicall. It return","default_branch":null,"files":null,"tree":[],"storefront":"/r/sonnyp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sonnyp/aria2.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}