1.0.0 • Published 5 years ago
musakui v1.0.0
Musakui
An easy to use module to fetch random posts from any subreddit
Usage
const musakui = require('musakui');
musakui('aww')
.then(result => console.log(result))
.catch(error => console.log(error));
Example result
{
"title": "Example reddit post",
"content": "",
"author": "luca",
"upvotes": 3,
"downvotes": 2,
"comments": 1,
"nsfw": false,
"reddit_url": "https://reddit.com/r/.../.../",
"media_url": "https://i.redd.it/.../"
}
Please note that media_url
won't be present if the post doesn't contain any kind of media.
1.0.0
5 years ago