Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
reddit-api-wrapper
Advanced tools
Easy-to-use wrapper for the Reddit API. Get Reddit data more efficiently and effectively.
A simple, easy-to-use wrapper for the Reddit API. This Node.js package abstracts the complexities of interacting with Reddit's API, providing a straightforward interface for fetching posts from Reddit.
Install via npm:
npm install reddit-api-wrapper
Here's how you can use this package:
const reddit = require('reddit-api-wrapper');
// Fetch top posts from all of Reddit
reddit
.getPosts('top')
.then((posts) => console.log(posts))
.catch((error) => console.error(error));
// Fetch top posts from a specific subreddit
reddit
.getPostsBySubreddit('programming', 'top')
.then((posts) => console.log(posts))
.catch((error) => console.error(error));
s;
This package provides the following functions:
getPosts(filter)
: Fetches posts from the front page of Reddit. If a filter is provided (e.g., 'top', 'hot', 'best'), fetches posts using that filter.
getPostsBySubreddit(subreddit, filter)
: Fetches posts from a specific subreddit. If a filter is provided (e.g., 'top', 'hot', 'best'), fetches posts using that filter.
FAQs
Easy-to-use wrapper for the Reddit API. Get Reddit data more efficiently and effectively.
The npm package reddit-api-wrapper receives a total of 0 weekly downloads. As such, reddit-api-wrapper popularity was classified as not popular.
We found that reddit-api-wrapper 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.