Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
aws-sqs-connector
Advanced tools
Tired of all the hassles connecting and polling a Amazon WebService SQS? The solution is here!
npm install --save aws-sqs-connector
With CoffeeScript
SQSConnector = require 'aws-sqs-connector'
Queue = new SQSConnector
credentials: './credentials/aws.json'
queueUrl: 'http://sqs.<REGION>.amazonaws.com/<NUMBER>/queue-name'
With JavaScript
var SQSConnector = require('aws-sqs-connector');
var Queue = new SQSConnector({
credentials: './credentials/aws.json',
queueUrl: 'http://sqs.<REGION>.amazonaws.com/<NUMBER>/queue-name'
});
With CoffeeScript
# Everytime there is a new message, this callback gets executed
Queue.receive (message, fetchNext) ->
# log message
console.log message
# log attributes
console.log message.attributes
# do some processing with the message and then fetch the next message
fetchNext()
With JavaScript
Queue.receive(function(message, fetchNext) {
console.log(message);
console.log(messages.attributes);
fetchNext();
});
send MessageBody, MessageAttributes, Callback
With CoffeeScript
Queue.send 'message body', { responseRequired: true, randomNumber: 1 }, (err, response) ->
console.error(err) if err
console.log response
With JavaScript
Queue.send('message body', { responseRequired: true, randomNumber: 1 }, function(err, response) {
if (err) { console.error(err); }
console.log(response);
});
{
"accessKeyId": "YOUR_ACCESS_KEY_ID",
"secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
"region": "YOUR_REGION"
}
FAQs
Amazon WebService SQS Connector
The npm package aws-sqs-connector receives a total of 15 weekly downloads. As such, aws-sqs-connector popularity was classified as not popular.
We found that aws-sqs-connector 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.