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.
An event based wrapper for getting new comments and submissions from Snoowrap.
An event based wrapper for getting new comments and submissions from Snoowrap.
npm install snoostream
const SnooStream = require('snoostream');
let snooStream = SnooStream({
... // This is all Snoowrap configuration
});
OR
const SnooStream = require('snoostream');
const Snoowrap = require('snoowrap');
let snooWrap = new Snoowrap({
... // This is all Snoowrap configuration
});
let snooStream = SnooStream(snooWrap);
SnooStream(options[, drift])
SnooStream(Snoowrap[, drift])
options
Snoowrap configurationSnoowrap
A Snoowrap objectdrift
the number of seconds system time is ahead of Reddit server time. Usually not needed.let commentStream = snooStream.commentStream('all');
// Or if you want to match with a specific regex
let commentStream = snooStream.commentStream('all', { regex: /abc/ });
commentStream.on('post', (post, match) => {
... // post is returned directly from Snoowrap
... // match contains the groups matched by regex
});
snooStream.commentStream(subreddit[, options])
subreddit
the subreddit to poll for new comments. Default is 'all'.options.regex
Will only emit posts that match the provided regexoptions.rate
Rate at which to poll Reddit. Default is 1000 ms.options.*
Any additional options that would apply to Snoowrap.getNewComments()
such as limit
which limits the amount of comments fetched every call.let submissionStream = snooStream.submissionStream('all');
// Or if you want to match with a specific regex
let submissionStream = snooStream.submissionStream('all', { regex: /abc/ });
submissionStream.on('post', (post, match) => {
... // post is returned directly from Snoowrap
... // match contains the groups matched by regex
});
snooStream.submissionStream(subreddit[, options])
subreddit
the subreddit to poll for new submissions. Default is 'all'.options.regex
Will only emit posts that match the provided regexoptions.rate
Rate at which to poll Reddit. Default is 1000 ms.options.*
Any additional options that would apply to Snoowrap.getNew()
such as limit
which limits the amount of comments fetched every call.FAQs
An event based wrapper for getting new comments and submissions from Snoowrap.
The npm package snoostream receives a total of 4 weekly downloads. As such, snoostream popularity was classified as not popular.
We found that snoostream 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.