1.1.1 • Published 1 year ago

sendnotification v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

Send Notification

npm version Coverage Status Build Status

Relay notifications based in stdin data

echo "5000" | sendnotification SNS "SNS_TOPIC_IDENTIFIER" "the current balance is %d"

// the current balance is 5000

Configuration

Set environment variables or setup ~/.sendnotification/.env

# AWS configuration settings
AWS_ACCESS_KEY_ID=""
AWS_REGION=""
AWS_SECRET_ACCESS_KEY=""

# Mailjet configuration settings
MJ_APIKEY_PRIVATE=""
MJ_APIKEY_PUBLIC=""

Docker

There is an included Docker file, as well as a public image at alexbosworth/sendnotification

Example usage with Docker, referencing a .env file with the environment variables encoded:

echo "5000" | docker run -i --rm --env-file .env alexbosworth/sendnotification SNS "sns-topic-id" "the current balance is %d"

This should post the notification body to the specified topic, with the sprintf'ed contents

1.1.1

1 year ago

1.1.0

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago