simple-sns-client
v0.2.3
Published
Helper client to simplify access to AWS SNS (NodeJS)
Downloads
7
Keywords
Readme
simple-sns-client
Helper client to simplify access to AWS SNS (NodeJS)
Usage
const AWS = require('aws-sdk');
const SNSClient = require('simple-sns-client');
const sns = new AWS.SNS();
const snsClient = new SNSClient(sns);
snsClient
.getTopicArn('my-topic')
.then(topicArn => snsClient.publish(topicArn, 'Hello world!'));