
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
AMQP-DSL is a fluent interface wrapper for node-amqp and help you write AMQP binding code in a clean and efficient way.
$ npm install amqp-dsl
docs/example-connection
)
amqp = require 'amqp-dsl'
amqp.login(
login: 'user'
password: 'password'
host: 'localhost'
).connect((err, amqp) ->
if err
throw err
return
console.log 'We are connected !'
)
docs/example-simple
)
AmqpDsl = require 'amqp-dsl'
AmqpDsl.login(
login: 'legen'
password: 'dary'
)
.on( 'close', () -> console.error "RabbitMQ connection closed" )
.on( 'error', (err) -> console.error "RabbitMQ error", err )
.on( 'ready', () -> console.log "Connected to RabbitMQ" )
.queue( 'testQueue', (queue) -> console.log "Connected to Queue", queue.name )
.bind( 'stream', '#' )
.subscribe( (message, header, deliveryInfo) -> )
.queue( 'queue2' )
.bind( 'search', '#.ok' )
.queue( 'queue3', passive:true )
.connect( (err, amqp) ->
if err
throw err
return
# Do other stuff with `amqp` like subscribing to a queue
queue3 = amqp.queues.queue3
queue3.subscribe( ack:true, ( message, header, deliveryInfo ) ->
console.log "Hey ! We got one new message !"
queue3.shift()
)
)
See examples/
and docs/
for more information.
login( options = {} )
on( event, listener )
.exchange( name, options )
.exchange( name, callback(exchange) )
.exchange( name, options, callback(exchange) )
.queue( name, options )
.queue( name, callback(queue) )
.queue( name, options, callback(queue) )
.subscribe( callback(message, header, deliveryInfo) )
.subscribe( options, callback(message, header, deliveryInfo) )
.bind( name, routingKey )
.connect( amqp, callback(err, amqp) )
.connect( callback(err, amqp) )
The amqp
argument is simply hashtable with the following properties:
AMQP::queues
)AMQP::Exchange
)AMQP::Connection
)$ cake doc
... and browse docs/
$ npm test
FAQs
Amqp-DSL - Fluent interface for node-amqp
The npm package amqp-dsl receives a total of 7 weekly downloads. As such, amqp-dsl popularity was classified as not popular.
We found that amqp-dsl 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.