No description
Find a file
2021-04-17 11:52:23 -03:00
docs JS target, use httpclient 2021-04-12 19:51:43 -03:00
src JS target, use httpclient 2021-04-12 19:50:54 -03:00
.gitignore Initial commit 2021-04-12 13:13:52 -03:00
aria.nimble init 2021-04-12 13:25:20 -03:00
LICENSE Initial commit 2021-04-12 13:13:52 -03:00
README.md Update README.md 2021-04-17 11:52:23 -03:00

Aria

Aria2 API lib for Nim using JSON-RPC over HTTP for any backend.

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

Notes