0.0.1 • Published 7 years ago

sns-event-collector v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

SNS Event Collector

This package works in conjunction with evanderkoogh's event-collector, but was developed separately.

The function takes as parameter a Topic ARN for SNS, and returns a function that accepts an event-collector and an optional callback function.

Example

const eventCollector = require('event-collector');
const snsEventCollector = require('sns-event-collector')(process.env.TOPIC_ARN);

snsEventCollector(eventCollector, () => {});