Skip to content

Simple publish and parse module for AWS SNS

Notifications You must be signed in to change notification settings

littlstar/sns.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sns.js

Simple publish and parse module for SNS

Getting Started

Install this module:

npm install sns.js

Make sure these variables are in your process.env:

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION

Use in your code:

const SNS = require('sns.js')

// publish onto SNS, returns a promise
await SNS.publish(topicArn, message)

// derive the message from an SNS event
let message = SNS.parse(event)

License

MIT

About

Simple publish and parse module for AWS SNS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.8%
  • Makefile 2.2%