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
Ignore unmet dependency warnings. They are optional.
npm i js-reddit.js
.
const Reddit = require('js-reddit.js'); //Install reddit.js by running npm install js-reddit.js in your terminal. (Must have NodeJS Installed)
const opts = {
username: 'RedditGuy',
password: 'RedditGuy',
appId: 'secretID',
appSecret: 'appSecret',
userAgent: "Anything goes."
};
const client = new Reddit.Client();
client.login(opts);
client.on("ready", () => {
console.log(`Logged in as ${client.user.name}!`);
})
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.
If you need help with this wrapper please join our support server.