Skip to content

An easy to use module to fetch random posts from any subreddit

License

Notifications You must be signed in to change notification settings

lucapolesel/Musakui

Repository files navigation

Musakui build status

An easy to use module to fetch random posts from any subreddit

Install

$ npm install musakui

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.

About

An easy to use module to fetch random posts from any subreddit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published