
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
off-sqs-debearloper
Advanced tools
This easy manager provides the basic functionality to use Amazon SQS in production enviroment and RabbitMQ in development enviroment.
To start using it just clone it or install it via npm npm install off-sqs-debearloper
.
You only need edit the aws-config.json
adding your own keys:
{
"accessKeyId": "STRING",
"secretAccessKey": "STRING",
"region": "STRING"
}
Note: that every operation checks first if the Queue exists, if not it'll create it.**
To work with RabbitMQ, you need to install the Server. We recommend you to do it with homebrew, so you dont have to set up the server manually when you are in the development environment.
Before installing make sure you have the latest brews: brew update
Then, install RabbitMQ server with:
brew install rabbitmq
development
is the enviroment by default.
If you want to use production
or qa
execute your node app in this way:
NODE_ENV=production node yourApp.js
//or
NODE_ENV=qa node yourApp.js
Usage:
sqs.sender('myQueueName', ["foo": "bar"]);
##Receiver()
receiver
a function and queueUrl
a string.Usage:
sqs.receiver('myQueue').then(function(Receiver){
Receiver.receiver(Receiver.url, yourDataManager);
}
Note: Where
yourDataManager
is a function that receives every message on the queue, so you can easyly customize your data miner. Something like: `myMiner(messageOfTheQueue);``
###Example
offSqs.receiver("queueName").then(function(data){
data.receiver(data.url, saveData);
});
var saveData = function(data){
//save your data
}
##getQueueUrl()
Usage:
sqs.getQueueUrl('myQueue').then(function('myQueueURL'){
return myQueueURL;
});
##parseMessage()
body
as array.Usage:
sqs.parseMessage(data);
FAQs
Helper app that manages SQS and RabbitMQ transactions
The npm package off-sqs-debearloper receives a total of 4 weekly downloads. As such, off-sqs-debearloper popularity was classified as not popular.
We found that off-sqs-debearloper 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.