task-alert
v1.0.3
Published
A package for notifying users when tasks or commands are completed
Downloads
2
Maintainers
Readme
task-alert
task-alert is a simple command-line tool that executes a specified command and sends a notification when the command completes successfully. It uses the node-notifier package to send desktop notifications.
Installation
To use task-alert, you'll need to have Node.js installed on your system. You can install task-alert globally using npm
:
npm install -g task-alert
Usage
task-alert -c <command> [-m <message>]
The -c
option specifies the command to execute, and the -m
option specifies the notification message to display (optional). For example:
task-alert -c "echo 'Hello, world!'" -m "Test notification"
This command will execute the echo 'Hello, world!'
command and display a notification with the message "Test notification" when it completes successfully.
License
task-alert is released under the MIT License.