
Security News
Next.js Patches Critical Middleware Vulnerability (CVE-2025-29927)
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
ironmq-queue-stream
Advanced tools
make test
Test coverage could be better.
IronStream = require("ironmq-queue-stream").IronStream;
var iron = new IronStream({projectId: "", projectToken: ""});
//initialize a queue for that stream to pull from
var queueOptions = {
ironmq: {
n: 100,
timeout: THIRTY_MINUTES
},
stream: {
highWaterMark: HIGHWATER_MARK
}
};
var someQueueStream = iron.queue("someQueue", queueOptions);
//pipe that stream to something useful
someQueueStream.pipe(someOtherStream);
/*
The output of iron stream is the raw json pulled from the iron queue.
Sometimes you want to reliably parse json that you stored on the queue
to then process downstream.
Say we stored a stringified json object on the queue like:
'{
"some": "message"
}'
What's actually output from the ironmq queue is
{
"id": "123",
"body": '{"some": "message"}'
}
Ironmq Stream provides a helper method to output a parsed json object, allowing
the client to define an optional onError handler that executes when there's some
parsing error.
*/
var jsonParserOptions = {
onError: function(err, message) {
console.error("Problem parsing JSON for:", message, "Error:", err);
},
stream: {
highWaterMark: HIGHWATER_MARK
}
};
var parsedStream = IronStream.parseJson(queueStream, jsonParserOptions);
parsedStream.pipe(someOtherStream);
/*
someOtherStream now gets
{
"id": "123",
"some": "message"
}
The object is enriched with id in case you want to use a Queue sink downstream.
*/
/*
Sometimes you might want to delete a message off IronMQ after doing some processing.
Sinks make that easy.
*/
var Sink = require("ironmq-queue-stream").Sink;
var iron = new IronStream({projectId: "", projectToken: ""});
var myQueueStream = iron.queue("myQueue");
var sink = new IronMQStream.Sink(myQueueStream, {deleteInBatchesOf: 100, stream: {highWaterMark: HIGHWATER_MARK}});
myQueueStream.pipe(someOtherStream).pipe(sink); //every successful message is deleted from the queue.
FAQs
Wraps the ironmq client in a stream interface
The npm package ironmq-queue-stream receives a total of 5 weekly downloads. As such, ironmq-queue-stream popularity was classified as not popular.
We found that ironmq-queue-stream 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.
Security News
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.