ards-client v2.0.1
Pulls Posts from Reddit, Danbooru, rule34, Konachan, and Yande.re
Documentation | Support
If you are upgrading from version 1.x and 2.x, please read this guide on updating to version 3.x.
Installation
Note: Node.js 14.0.0 or newer is required.
npm i ards-client yarn add ards-client
Basic Usage
For more info on a specific class visit the docs.
For Reddit
const { redditCustom } = require("ards-client");
// subreddit can be a string or an array
let subreddit = ['subreddit1', 'subreddit2'];
let limit = 50;
new redditCustom(subreddit, limit).then(data => {
console.log(data);
}).catch(error => {
console.log(error);
});
For Danbooru
const { danbooru } = require("ards-client");
let tags = ['tag1', 'tag2'];
let limit = 50;
new danbooru(tags, limit).then(data => {
console.log(data);
}).catch(error => {
console.log(error);
});
For Konachan
const { konachan } = require("ards-client");
let tags = ['tag1', 'tag2'];
let limit = 50;
new konachan(tags, limit).then(data => {
console.log(data);
}).catch(error => {
console.log(error);
});
For Rule34
const { rule34 } = require("ards-client");
let tags = ['tag1', 'tag2'];
let limit = 50;
new rule34(tags, limit).then(data => {
console.log(data);
}).catch(error => {
console.log(error);
});
For Yande.re
const { yandere } = require("ards-client");
let tags = ['tag1', 'tag2'];
let limit = 50;
new yandere(tags, limit).then(data => {
console.log(data);
}).catch(error => {
console.log(error);
});
Links
License
The MIT License © 2021-Present shhh7612. All rights reserved.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago