Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coins-notify

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coins-notify

show notifications in the browser. use 'growl' like notifications first, or notifyjs (jQuery plugin) as the fallback

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

Codeship Status for cdaringe/coins-notify

coins-notify

show notifications in the browser. attempts to use 'growl' like notifications first, but falls back on notifyjs (jQuery plugin) if the browser user has not accepted (or has denied) growl like notifications.

usage

Note: if jQuery fallback is being used, jQuery && notifyjs must be loaded onto the window. This module does not address those dependencies.

var Notify = require('coins-notify');
var notifier = new Notifier();

// show a notification
notifier.push({
    body: 'test!',
    className: 'info'
});
default, os/growl mode
fallback mode

api

Notify(opts) [constructor]

opts

type: object

  • maxQueue number number of messages to internally retain history over. not persistent accross browser sessions. See notifyInstance.queue for history

push(opts)

opts

type: object

  • body* string text shown in notification body
  • className string class name applied. Supported classNames are those supported in notifyjs (alt mode only)
  • alt/alternative/fallback boolean force the notifier to use the notifyjs fallback
  • icon string absolute url to icon (default mode only)
  • tag string tag!
  • timeout number ms [default, 5000], duration for notification to stay up
  • notifyShow function callback
  • notifyClose function callback
  • notifyClick function callback
  • notifyError function callback

changelog

  • 1.1.5 - improve fallback mode

Keywords

FAQs

Package last updated on 19 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc