Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 822 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 822 Bytes

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