Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
reddit-by-date
Advanced tools
Readme
Node.js API to get top Reddit posts by date
npm install reddit-by-date
var redditByDate = require('../reddit-by-date.js');
// month, day, year, subreddit
// month [ 0 -> 11 ] = [ January -> December ]
redditByDate.getPosts(3, 4, 2016, "news", function(err, posts){
console.log(posts);
});
Type: function
month
number (integer from 0 to 11)
day
number (integer from 0 to 31)
year
number (integer)
subreddit
string (name of subreddit)
callback
function
Returns array of top posts in subreddit for requested date.
Type: array
Post objects.
Type: string
Name of subreddit.
Type: string
ID of subreddit.
Type: string
Author of post.
Type: string
Unique name identifier of subreddit (e.g. t3_4d7lw5).
Type: number
Score of post.
Type: string
Unique subreddit identifier of subreddit (e.g. t5_2qh3l).
Type: number
Number of downvotes on post.
Type: number
Number of upvotes on post.
Type: string
Permalink of post.
Type: number
Time of creation in milliseconds from January 1, 1970.
Type: string
URL referenced by post.
Type: string
Title of post.
Type: number
Number of comments on post.
Type: string
Type of subreddit.
MIT © Rishi Masand
FAQs
Node.js API to get top Reddit posts by date
The npm package reddit-by-date receives a total of 0 weekly downloads. As such, reddit-by-date popularity was classified as not popular.
We found that reddit-by-date demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.