js-reddit.js

1.0.9 • Public • Published

About

Reddit.js an intuitive wrapper that lets you interact easily with the reddit api.

  • Promise based
  • Object Oriented
  • Best API coverage
  • Predicatable Errors
  • Fully Documented

Installation

Ignore unmet dependency warnings. They are optional.

Without UUID class: npm i js-reddit.js.

With UUID class: npm i js-reddit.js uuid-class

Example Usage

const Reddit = require('../src/index.js');
const opts = {
    username: 'RedditGuy',
    password: 'RedditGuy',
    appId: 'secretID',
    appSecret: 'appSecret',
    userAgent: "Anything goes."
  };
const client = new Reddit.Client(opts);

client.fetchSelf().then(user => {
console.log(`This client is logged into ${user.name}`);
});

Contributing

Want to become a developer on this project? Email me at obs@obs.wtf or on discord.

Please double check JSDoc notes before making a pull request or issue.

Package Sidebar

Install

npm i js-reddit.js

Weekly Downloads

7

Version

1.0.9

License

none

Unpacked Size

136 kB

Total Files

18

Last publish

Collaborators

  • oberto