1.0.9 • Published 4 years ago

js-reddit.js v1.0.9

Weekly downloads
26
License
-
Repository
github
Last release
4 years ago

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.

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago