Quote (kdog3682 @ 7 Jan 2020 18:37)
Write a simple node.js app that can be used in the terminal.
1. No external libraries.
2. Goal: Write a post to reddit.
Usage:
Code
postToReddit({
username: 'JohnDoe',
password: 'cakelover',
postTitle: 'Cakes are Delicious. Do you agree?',
subreddit: 'askreddit',
body: 'This is a test post about cakes.'
})
Terminal: node postToReddit.js
Let me clarify this: You want this done WITHOUT the reddit api npm package, and WITHOUT something like headless chrome?
I'm sorry but if this is the case then there's no way I'm touching this. I know how to do this, and I know how much trial and error there's going to be without either headless chrome or the reddit api npm module.