1.0.7 • Published 6 years ago

alert-sender v1.0.7

Weekly downloads
4
License
Apache 2.0
Repository
github
Last release
6 years ago

To install:

npm install alert-sender --save

Usage:

var alert_sender = require("alert-sender");

To configure:

alert_sender.configure({
	sns: {
		"type"				: "sns",
		"accessKeyId"		: "",
		"secretAccessKey"	: "",
		"region"			: "",
		"topic"				: "",
	},
	ses: { // not supported yet
		"type"				: "ses",
		"accessKeyId"		: "",
		"secretAccessKey"	: "",
		"region"			: "",
		"sender"			: "",
	}
	smtp: { // not supported yet
		host				: "",
		port				: "",
		username			: "",
		password			: "",
		sender				: "",
	}
});

In the above codes, the 'sns' becomes the default channel because it's the first one or if the only configuration in the list. Alternatively, you can say default_channel = 'sns'

To send:

alert_sender.send("Test " + new Date());

or

alert_sender.send("Test " + new Date(), "sns");

More advanced configuration later

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago