Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
simplecrawler-mongo-queue
Advanced tools
This is a queue implementation for simplecrawler powered by MongoDB.
npm install --save simplecrawler-mongo-queue
First of all, create a new Simplecrawler instance as described in the documentation. Then create the queue instance and assign it to crawler.queue
property.
const Crawler = require('simplecrawler');
const MongoQueue = require('simplecrawler-mongo-queue');
(async () => {
const crawler = new Crawler('http://example.com');
crawler.queue = await MongoQueue.create(datastore, name);
crawler.start();
})();
The create
method returns MongoQueue
instance and has two arguments:
datastore
- the application should provide a MongoDB collection where the queue will be stored.name
(optional) - a name of the queue to distinguish the different crawlers. If the argument is omitted the constructor creates a random queue name.FAQs
MongoDB queue implementation for simplecrawler
We found that simplecrawler-mongo-queue 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.