redditor
A minimal wrapper for the reddit API. It manages the session tokens, rate limiting and JSON parsing, otherwise it just passes on the raw response from reddit.
npm install redditor
Usage
It supports both doing anonymouse and authorized requests.
var reddit = ; reddit;
Login using username and password.
;
Or using username
, cookie
and modhash
directly.
var authorized = ;
If needed the data can also be streamed using the returned instance.
reddit;