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.
Permalink
Failed to load latest commit information.
.eslintrc
.gitignore Adds system file to ignore Jan 27, 2017
README.md 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

README.md

node-notifier CLI

Separate package for node-notifier CLI.

Install

npm i [-g] node-notifier-cli

or try it out with npx

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

usage

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 http://github.com
   $ notify -t "Agent Coulson" --icon https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/coulson.jpg
   $ notify -m "My Message" -s Glass
   $ echo "My Message" | notify -t "Hello"