
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
pushshift-api
Advanced tools
An API to query the PushShift Reddit API, supporting both submissions and comments.
PushShift allows you to view delete submissions and comments.
Example to fetch the latest 5
submissions from the r/pics
subreddit:
import { getSubmission, SortMethod, SortType, SubmissionFields } from 'pushshift-api';
(async () => {
const response = await getSubmission({
subreddit: "pics",
size: 5,
fields: [
SubmissionFields.Author,
SubmissionFields.Title,
SubmissionFields.Url
],
sort_type: SortType.Created,
sort: SortMethod.Descending
});
if (response) {
for (let submission of response) {
console.log(submission);
/*
{
author: 'An author',
title: 'A title',
url: 'URL to image'
}
*/
}
}
})();
FAQs
A pushshift API for Reddit
The npm package pushshift-api receives a total of 3 weekly downloads. As such, pushshift-api popularity was classified as not popular.
We found that pushshift-api 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
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.