
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
mongoose-querystream-worker
Advanced tools
Execute an async function per document in a streamed query, pausing the stream when a concurrency limit is saturated
Execute an async function per document in a streamed query, pausing the stream when a concurrency limit is saturated. Think async.queue but for Mongoose QueryStreams. Built on top of stream-worker.
require('mongoose-querystream-worker');
/* Promises: */
Model.find().stream().concurrency(n).work(function (doc) {
/* ... work with the doc ... */
return doc.save(); /* returns a promise */
})
.then(function() {
/* ... all workers have finished ... */
}, function(err) {
/* ... something went wrong ... */
});
/* Callbacks: */
Model.find().stream().concurrency(n).work(
function (doc, done) {
/* ... work with the doc ... */
},
function (err) {
/* ... all workers have finished ... */
}
);
FAQs
Execute an async function per document in a streamed query, pausing the stream when a concurrency limit is saturated
The npm package mongoose-querystream-worker receives a total of 2 weekly downloads. As such, mongoose-querystream-worker popularity was classified as not popular.
We found that mongoose-querystream-worker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.