CLI API for node-notifier as separate package.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore Adds system file to ignore Jan 27, 2017 Add failsafe option to send notification Dec 4, 2017
bin.js Fixes linting issues Jan 13, 2018
package-lock.json Updates version and fixes warnings Jan 13, 2018
package.json v1.1.2 Jan 13, 2018

node-notifier CLI

Separate package for node-notifier CLI.


npm i [-g] node-notifier-cli

or try it out with npx

npx -p node-notifier-cli notify -t 'Hello' -m 'My message'


notify -h
# notify
## Options

    * --help (alias -h)

    * --title (alias -t)
    * --subtitle (alias -st; not available on Windows OS)
    * --message (alias -m)
    * --icon (alias -i)
    * --sound (alias -s; use none to disable default sound notification)
    * --open (alias -o)
    * --port (alias -p)
    * --host
    * --failsafe (alias -x; time in milliseconds)

## Example

   $ notify -t "Hello" -m "My Message" -s --open
   $ notify -t "Agent Coulson" --icon
   $ notify -m "My Message" -s Glass
   $ echo "My Message" | notify -t "Hello"