mirror of
https://github.com/juancarlospaco/aria
synced 2026-01-14 11:31:46 +00:00
No description
| docs | ||
| src | ||
| .gitignore | ||
| aria.nimble | ||
| LICENSE | ||
| README.md | ||
Aria
Aria2 API lib for Nim using JSON-RPC over HTTP for any backend.
- https://aria2.github.io
- https://aria2.github.io/manual/en/html/aria2c.html#methods
- https://juancarlospaco.github.io/aria/index.html
Use
import aria
import std/json # $
let client: Aria = newAria(ip = "127.0.0.1", port = 6800.uint16)
aria:
## These are just Aria API calls, same naming as from Aria Documentation.
echo client.getVersion()
## See also addTorrent(), addMetalink(), addUrl(), etc
Aria in the Browser, JavaScript target:
import aria
import std/[jsffi, jsfetch] ## fetch()
let client: Aria = newAria(ip = "127.0.0.1", port = 6800.uint16)
echo client.getVersion().repr