musakui

1.0.0 • Public • Published

Musakui build status

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.

Readme

Keywords

Package Sidebar

Install

npm i musakui

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.12 kB

Total Files

8

Last publish

Collaborators

  • justluca