Skip to content

Instantly share code, notes, and snippets.

View poberherr's full-sized avatar
🧠

Patrick Oberherr poberherr

🧠
View GitHub Profile
@poberherr
poberherr / AMQP-list all events
Created July 8, 2016 09:08
Listens to AMQP events, for each event key creates a file and put the content in it.
// Start with node <filename>.js '#'
// Enjoy!
'use strict';
// #!/usr/bin/env node
var storage = require('node-persist');
var amqp = require('amqplib/callback_api');
var args = process.argv.slice(2);