
Research
PyPI Package Impersonates SymPy to Deliver Cryptomining Malware
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.
grouped-queue
Advanced tools

In memory queue system prioritizing tasks.
$ npm install --save grouped-queue
The constructor take an optionnal array of tasks group. The first String name will be the first queue to be emptied, the second in second, etc.
By default, the constructor always add a default queue at the last position. You can overwrite the position of the default group if you specify it explicitly.
var Queue = require('grouped-queue');
var queue = new Queue([ 'first', 'second', 'third' ]);
add( [group], task, [options] )Add a task into a group queue. If no group name is specified, default will be use.
Implicitly, each time you add a task, the queue will start emptying (if not already running).
Each tasks runned in the queue will receive a callback function to call once finished.
queue.add(function( cb ) {
DB.fetch().then( cb );
});
onceYou can register tasks in queues that will be dropped if they're already planned. This is done with the once option. You pass a String (basically a name) to the once option.
// This one will eventually run
queue.add( method, { once: "readDB" });
// This one will be dropped as `method` is currently in the queue
queue.add( method3, { once: "readDB" });
runYou can register a task without launching the run loop by passing the argument run: false.
queue.add( method, { run: false });
Bind your tasks with context and arguments!
var task = function( models, cb ) {
/* you get `models` data here! */
};
queue.add( task.bind(null, models) );
Yes!
endThis event is called each time the queue emptied itself.
Style Guide: Please base yourself on Idiomatic.js style guide with two space indent
Unit test: Unit test are wrote in Mocha. Please add a unit test for every new feature
or bug fix. npm test to run the test suite.
Documentation: Add documentation for every API change. Feel free to send corrections
or better docs!
Pull Requests: Send fixes PR on the master branch.
Copyright (c) 2013 Simon Boudrias (twitter: @vaxilart)
Licensed under the MIT license.
FAQs
In memory queue system prioritizing tasks
The npm package grouped-queue receives a total of 857,044 weekly downloads. As such, grouped-queue popularity was classified as popular.
We found that grouped-queue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.