
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@opens/bullmq
Advanced tools
BullMQWrapper is a wrapper around BullMQ that simplifies creating and managing task queues using Redis. It provides an easy interface for queue creation, worker registration, and task publishing.
On top of installing this package, the following variables must be defined in your environment or an exception will be thrown
BULLMQ_REDIS_HOST BULLMQ_REDIS_PORT
To create a queue, you can use createTask
. You can specify the queue name, job options, and an optional worker to process jobs.
import { bullmq } from '@opens/bullmq';
bullmq.createTask({
taskName: 'example-task',
concurrency: 5,
up: async (data, job) => {
console.log('Processing job:', job.id);
},
});
Once the queue is created, you can add tasks to it using publishTask
.
await bullmq.publishTask({
taskName: 'example-task',
taskData: { key: 'value' },
taskOptions: { delay: 1000 },
});
Workers process jobs in the queue. You can create a worker separately using createWorker
.
bullmq.createWorker({
taskName: 'example-task',
concurrency: 3,
up: async (data, job) => {
console.log('Job executed:', job.data);
},
down: async (data, job, error) => {
console.log('Job failed::', job.id);
console.error("With error::", error)
},
});
To check the number of active queues, use getTaskCount
.
console.log('Number of task queues:', bullmq.getTaskCount());
publishTask
returns null
.down
function to handle failures.This project is licensed under the MIT License.
FAQs
A wrapper around bullmq
The npm package @opens/bullmq receives a total of 51 weekly downloads. As such, @opens/bullmq popularity was classified as not popular.
We found that @opens/bullmq demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.