https://github.com/chrisalexandrepena/alldebrid
https://github.com/chrisalexandrepena/alldebrid
alldebrid npm-package sdk-js
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chrisalexandrepena/alldebrid
- Owner: chrisalexandrepena
- License: gpl-3.0
- Created: 2020-03-28T23:23:37.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T08:33:57.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T04:01:42.556Z (2 months ago)
- Topics: alldebrid, npm-package, sdk-js
- Language: TypeScript
- Size: 129 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SDK for Alldebrid :rocket:
This library was built to interact with alldebrid, either globaly using the command line, or in a new project as a dependency.
Enjoy ! :heart:
# `Install globally`
Install the package globally using npm
```
npm i -g alldebrid
alldebrid set config -a agent -k apikey
alldebrid get torrents
```
Or you can just use it without installing it using the `npx` command;Check out the [package api](./doc/global.md) for global use.
# `Install locally`
Install the package locally using npm
```
npm i alldebrid
```
then you can use it anywhere in your code
```js
const Alldebrid = require('alldebrid');
const alldebrid = new Alldebrid(agent, apikey);
alldebrid.getTorrentList().then(torrents=>...);
```
Check out the [package api](./doc/local.md) for local use.