
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
serverless-notify-after-command
Advanced tools
Simple serverless plugin to send a notification to the linux system notification handler after any command serverless command (successfull or failed)
This is a simple plugin for Serverless Framework to send a notification to the linux system notification system after any serverless command (successfull or failed).
This plugin depends that your operational system is able to run the bash commands:
sleep
notify-send
paplay
For the plugin to work, it creates a child process the checks the amount of processes from serverless running in the system.
$ npm install serverless-notify-after-command --save-dev
Add the plugin to your serverless.yml
file:
plugins:
- serverless-notify-after-command
The configuration of the plugin is done by defining a custom: notifyAfterCommand
object in your serverless.yml
with your specific configuration.
Attribute | Type | Default | Description |
---|---|---|---|
active | Boolean | true | Should run or not by default |
blacklist | Array | [] | Blacklist commands, even when active is true |
whitelist | Array | [] | Whitelist commands, even when active is false |
stages | Array | ['development'] | The list of stages to run |
sound | Boolean | true | True if a sound should be played too |
For the stages, important to note how the plugin infers the stage. It gets the --stage option, then serverless.yml custom.stage, then serverless.yml provider.stage then 'development.' The first one it finds, is the value it considers.
custom:
notifyAfterCommand:
active: true
blacklist: []
whitelist: []
stages: ['development']
sound: true
Besides the serverless.yml
configuration, you can pass Environment Variables to force it to use or not. Just set the SLS_NOTIFY to true or false, if you want notifications or not.
If you want to force the sound to play event when sound is false, pass the SLS_NOTIFY_SOUND=true.
SLS_NOTIFY=true serverless [command]
SLS_NOTIFY=true sls [command]
SLS_NOTIFY_SOUND=true sls [command]
Customize the notification sound.
FAQs
Simple serverless plugin to send a notification to the linux system notification handler after any command serverless command (successfull or failed)
The npm package serverless-notify-after-command receives a total of 26 weekly downloads. As such, serverless-notify-after-command popularity was classified as not popular.
We found that serverless-notify-after-command 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.