Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
easter is a RabbitMQ publish/subscribe client with support for both AMQP and HTTP protocols.
Indicator | |
---|---|
documentation | |
continuous integration | |
dependency management | |
code coverage | |
examples | /examples |
change log | CHANGELOG Releases |
publish()
and a subscribe()
.npm install easter
easter = require('easter');
// easter provides singleton methods for convenience but you can just as well
// use the base classes: RabbitAmqpClient and RabbitHttpClient.
amqpClient = easter.singleton('amqp', {host: 'localhost', port: 5672});
httpClient = easter.singleton('http', {host: 'localhost', port: 15672});
// The queue is created behind the scenes, if it does not exist yet.
amqpClient.subscribe('my-test-queue', function (error, message, consume) {
consume(); // In this case we are consuming the message immediately!
if(error) {
return console.log('Failed to connect/fetch message from queue', error);
}
console.log('Consumed message from queue');
});
console.log('Publishing message on the queue');
httpClient.publish('my-test-queue', 'hello easter rabbitmq');
// Note that httpClient and amqpClient are interchangeable.
More examples are in the /examples
directory, they include instructions on how to run and test.
$ vagrant up
rabbitmq-server
and enable rabbitmq_management
plugin.$ npm install
./vagrant_boostrap.sh
for instructions on how to setup all dependencies on a fresh ubuntu 14.04 machine.$ npm run test
$ npm run test
.$ npm run coverage
to open a browser window with the coverage report.$ npm run doc
to generate the docs and check if they look ok.$ npm run lint
(The MIT License)
Copyright (c) 2016 Alexandru Topliceanu (alexandru.topliceanu@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Version 0.0.3 - May 16, 2018
FAQs
Amqp/Http pub/sub client for RabbitMQ
The npm package easter receives a total of 5 weekly downloads. As such, easter popularity was classified as not popular.
We found that easter 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.