
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
simple-queue-service
Advanced tools
Simple interface to amazon's simple queue service
npm install simple-queue-service
var sqs = require('simple-queue-service');
var client = sqs('SQS_ACCESS_KEY', 'SQS_SECRET_KEY', 'SQS_REGION');
var queue = client.createQueue('my-queue');
queue.send({foo: 'bar'});
queue.nextMessage()
.then(function (res) {
console.log(res.body.foo);
res.delete();
});
All time spans can be passed either as a number of seconds, or any string accepted by ms (e.g. '1 minute' => 60 seconds or '2 minutes' => 120 seconds)
Creates a new client for the amazon simple queue service. SQS_REGION will default to 'us-east-1'. The regions translate as follows
'us-east-1' => Virginia
'us-west-1' => N. California
'us-west-2' => Oregon
'eu-west-1' => Ireland
'ap-southeast-1' => Singapore
'ap-northeast-1' => Tokyo
You can if you prefer set any of the three arguments by simply setting an environment variable of the same name (and arguments passed in will override any environment variables).
Arguments:
'1kb' => 1024 bytesReturns:
This method imediately returns a new Queue object. If something goes wrong with creating the queue, this resulting queue will 'throw' errors when you try and post/recieve messages to/from it.
The result is also a promise, which allows you to wait until it's fully initialized if you prefer.
Arguments:
Returns:
The same as for createQueue except that in the case you provide the full id, it won't be a promise.
Arguments:
Returns:
A promise for an Array of Queue objects. They are never promises.
You can use Client.Queue(name, 'SQS_ACCESS_KEY', 'SQS_SECRET_KEY', 'SQS_REGION') as an alternative to Client('SQS_ACCESS_KEY', 'SQS_SECRET_KEY', 'SQS_REGION').getQueue(name).
This also provides access to the prototype of Queue.
The name of the queue (not the full identifier).
Puts a message into the queue
Arguments:
Gets the next message from the queue. If there are no available messages, this method will keep polling until there is a message.
Arguments:
Returns:
A promise for a Message object.
Gets up to 'max' messages from the queue. It will return an empty array [] if there are no messages, rather than continuing to poll.
Arguments:
Returns:
A promise for an array of Message objects.
Encapsulates a message retrieved from the queue, along with its metadata.
The parsed JSON body of the message.
The ID of the message sender.
A Date object for when the message was sent.
A Date object for when the message was first received (aproximate).
The aproximate number of times this message has been received (you probably want to give up if that number's unusually high).
You MUST call this once you're done, so the message does not get re-delivered. Returns a promise to indicate success.
Reset the visibilityTimeout to a new value. Returns a promise to indicate success.
FAQs
Simple interface to amazon's simple queue service
The npm package simple-queue-service receives a total of 18 weekly downloads. As such, simple-queue-service popularity was classified as not popular.
We found that simple-queue-service 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.