0.1.0 • Published 9 months ago

ubuntu-toast-notifier-pmb v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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

0.1.0

9 months ago