https://github.com/lsongdev/aria2-api
Aria2 RPC Library in Node.js
https://github.com/lsongdev/aria2-api
aria2 aria2c jsonrpc rpc-call rpc-client rpc-library
Last synced: 7 months ago
JSON representation
Aria2 RPC Library in Node.js
- Host: GitHub
- URL: https://github.com/lsongdev/aria2-api
- Owner: lsongdev
- License: mit
- Created: 2018-11-10T15:30:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T08:12:32.000Z (over 3 years ago)
- Last Synced: 2024-12-31T10:05:17.000Z (about 1 year ago)
- Topics: aria2, aria2c, jsonrpc, rpc-call, rpc-client, rpc-library
- Language: JavaScript
- Homepage: https://npmjs.org/aria2c
- Size: 14.6 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## aria2c
[](https://npmjs.org/aria2c)
[](https://travis-ci.org/song940/aria2c)
> Aria2 RPC Library in Node.js
### Installation
```bash
$ npm install aria2c
```
### Example
```js
const Aria2 = require('aria2c');
const aria2 = new Aria2({
token: 'YOUR-ARIA2-TOKEN',
url: 'http://192.168.1.1:6800/jsonrpc',
});
(async () => {
const res = await aria2.getVersion()
console.log(res);
})();
```
### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
### MIT
This work is licensed under the [MIT license](./LICENSE).
---