Skip to content

Unified notifications library to handle Growl notifications across all available platforms — Safari (with Growler), Firefox (with Yip), Fluid and Prism

Notifications You must be signed in to change notification settings

adityavm/notifyLibJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Unified notifications library to handle Growl notifications across all available platforms — Safari (with Growler), Firefox (with Yip), Fluid and Prism. The library is cross platform and takes care of any errors in posting notifications. If there is no notification API present, the call will silently fail (unless debug lines are un-commented).

Exposes a "notifications" namespace (new in 1.1) which contains the following properties and methods:

Properties

  • prism (boolean) : whether Prism notifications are supported
  • fluid (boolean) : whether Fluid notifications are supported
  • `growler`` (boolean) : whether Growler (for Safari) notifications are supported
  • notifications_support (boolean) : whether a notification API is present (check this value to decide if you need to continue with notification specific code e.g. requesting additional data)

Methods

notify 	({ title,
	   description,
	   icon,
	   priority,
	   sticky,
	   identifier })

— Post a notification with given information. All keys are optional


To post a default notification, simply call:

notifications.notify();

About

Unified notifications library to handle Growl notifications across all available platforms — Safari (with Growler), Firefox (with Yip), Fluid and Prism

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published