
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
micro-app-notify-client
Advanced tools
Simple client to send notifications through SMS and other means.
The client currently supports sending notifications through the following:
The option of using the MqttSMSBridge server is nice because access control is handled by limiting access to the mqtt server. This means you don't need to have SMS provider information (ex Twilio auth info) deployed with your application. It also means you can centralize control over how you get notifications. For example, if you want to change the number to which notificaitons are sent, you only have to change the configuration for the bridge as opposed to having to reconfigure all applications that send notifications.
To send a notification simply call sendNotification.
For example:
notify.sendNotification(config, message);
where:
Configuration for the notify client is done through a
notify element within the configuration object.
That element can optionally include the following
provider elements:
If an element is absent, then that provider
is not used for notifications. If the element is present
then it should have a field called enabled. If the
value for this field is true then a notification
will be sent using that provider.
The options for each of the provider elements are:
mqttSmsBridge
mqtts.voipms
twilio
An example of a json file that can be read in to make the configuration object (with the sensitive bits masked):
{
"notify": {
"mqttSmsBridge": { "enabled": true,
"serverUrl": "mqtts:xxxxxxxxxxxxx:8883",
"topic": "house/sms",
"certs": "certs-outside" },
"voipms": { "enabled": false,
"user": "xxxxxxxxxxx",
"password": "xxxxxxxx",
"did": "xxxxxxxxxx",
"dst": "xxxxxxxxxx" },
"twilio": { "enabled": false,
"accountSID": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"accountAuthToken": "XXXXXXXXXXXXXXXXXXX",
"toNumber": "XXXXXXXXXXX" ,
"fromNumber": "XXXXXXXXXX" }
}
}
Install by running:
npm install micro-app-notify-client
or
npm install https://github.com/mhdawson/micro-app-notify-client.git
FAQs
client to send notifications though sms and other means
We found that micro-app-notify-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.