ubuntu-toast-notifier-pmb
v0.1.0
Published
Desktop toast popups for Ubuntu, with fallback to xmessage.
Downloads
5
Readme
ubuntu-toast-notifier-pmb
Desktop toast popups for Ubuntu, with fallback to xmessage.
API
This module exports one function:
notify(opt)
If opt
is a false-y, returns immediately.
If opt
has no msg
property, e.g. because it is a string,
wrap it in an object as its msg
property.
If truthy, opt
is expected to be an options object,
in which case it supports these optional keys:
msg
: The message you want to convey. If this is false-y, or after string conversion is empty, return immediately.from
: A name or short description of the sender of the message. In a non-messaging context, this is usually the name of the application that wants to notify the desktop user about something.
Usage
see test/usage.mjs.
Known issues
- Needs more/better tests and docs.
License
ISC