node-notifier-cli
Version:
CLI API for node-notifier
46 lines (33 loc) • 973 B
Markdown
Separate package for [`node-notifier`](https://github.com/mikaelbr/node-notifier) CLI.
```
npm i [-g] node-notifier-cli
```
or try it out with [npx](https://www.npmjs.com/package/npx)
```
npx -p node-notifier-cli notify -t 'Hello' -m 'My message'
```
```
notify -h
```
```
* --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)
$ 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"
```