npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@unaxiom/unnotify

v0.3.0

Published

Pure JS growlish notifications with zero dependencies, simple API written in TypeScript.

Readme

unnotify

Pure JS growlish notifications with zero dependencies, simple API written in TypeScript. No jQuery needed either.

Installation

user@username ~> npm install @unaxiom/unnotify --save
  • If integrating using browserify:

In your typescript files, import as:

import * as unnotify from '@unaxiom/unnotify';
  • If integrating to webpage:
<script src="dist/unnotify.min.js" type="text/javascript"></script>

Usage

  • Simple functions
// Initialization is required just once across all the files.
unnotify.init(); // Default is on the right. Also accepts a string - 'left' or 'right'.

// Can also be initialized in the following way
unnotify.init('right', true); // The second parameter denotes if the notification should have the ability to be clickable. Default is false.

// To display a notification
var notificationID = unnotify.show('This is the Title', 'This is the content', {
    type: 'success' | 'info' | 'warning' | 'danger' | 'custom',
    timeout: 5000, // Number of milliseconds for which this notification needs to be displayed. If value is 0, then it won't be automatically destroyed.
    customClass: '', // (**Optional**) Name of the custom class that will be used instead of builtin classes. For this to be used, **type** should be set to 'custom'. 
    animateIn: 'lightSpeedIn', // (**Optional**) Name of the animation class (from animate.css) that needs to be used while creating the notification.
    animateOut: 'bounceOut', // (**Optional**) Name of the animation class (from animate.css) that needs to be used while destroying the notification.
})

// To display a notification requesting confirmation
var anotherNotificationID = unnotify.confirm("Display content that needs to be confirmed by the user", {
    type: 'warning',
    animateIn: 'lightSpeedIn',
    animateOut: 'bounceOut',
}, function(evt, anotherNotificationID) {
    // This is the on-confirm event handler
    // Do something here as the user has confirmed
}, function(evt, anotherNotificationID) {
    // This is the on-cancel event handler
    // This is OPTIONAL
    // Do something here as the user has cancelled
});

// To display a notification requesting affirmation
var nID = unnotify.affirm("Display content that needs to be affirmed by the user", {
    type: 'warning',
    animateIn: 'lightSpeedIn',
    animateOut: 'bounceOut',
}, function(evt, nID) {
    // This is the event handler that is called when the user clicks on Yes
    // Do something here as the user has confirmed
}, function(evt, nID) {
    // This is the event handler that is called when the user clicks on No
    // This is OPTIONAL
    // Do something here as the user has cancelled
});

// To display a notification with an input
var inpID = unnotify.input("Text you want to display along with an input", {
    type: 'warning',
    animateIn: 'lightSpeedIn',
    animateOut: 'bounceOut',
}, function(evt, inpID, valueEntered) {
    // This is the onNext event handler
    // valueEntered is the value that was entered by the user in the input field
}, function(evt, inpID) {
    // This is the on-cancel event handler
    // This is OPTIONAL
})

// To close the notification programatically
unnotify.destroy(notificationID);
  • Use object
var notificationCenter = new unnotify.Unnotify('right'); // Accepts either 'right' or 'left'
var id = notificationCenter.show("Hi", "From right", {
    timeout: 0,
    type: 'info',
    animateIn: 'fadeInUpBig',
    animateOut: 'rotateOutDownLeft'
});

setTimeout(function () {
    notificationCenter.destroy(id);
}, 8000);

notificationCenter.show("Hi Again", "From right", {
    timeout: 5000,
    type: 'danger',
    animateIn: 'fadeInUpBig',
    animateOut: 'rotateOutDownLeft'
});

Dev

user@username ~> npm install
user@username ~> gulp

Make necessary code changes in unnotify.ts