1.0.1 • Published 3 years ago

node-cron-notifier v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Node Cron Notifier

  • Execute a node script at any cron time and trigger os native notifications for any event in the script
  • Combines the functionalities of node-cron and node-notifier
  • This is intended for use in end systems and not in servers.

Usage

node-cron-notifier run <crontime> <taskname> <absolutejsfilepath>

Notes

  1. Cron time - Refer cron syntax

  2. Notification Trigger

    • To denote success use, process.send(data)
    • To denote error and exit use, process.exit(1)

Only internal node libraries and globally installed packages can be executed. If you use external package in your script, you must install it globally.

Adding to System startup

Refer this link for details on how to add node-cron-notifier to system startup.