Grabs a random image from reddit
npm install --save reddit-image
const ri = require('reddit-image');
console.log(await ri.get('EarthPorn'));
Returns a promise for the path of the recently downloaded wallpaper.
Type: string
The subreddit to download the image from.
Type: object
Type: string
Default: .
Type: string
Values: hot
new
top
controversial
Default: hot
Type: string
Values: hour
day
week
month
year
all
Default: all
Type: int
Default: 100
Type: int
Default: 5
Type: bool
Default: false
Type: object
Type: int
Default: 1920
Type: int
Default: 1080
MIT © Patrick Tone