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 🙏

© 2024 – Pkg Stats / Ryan Hefner

cs-notify

v1.0.1

Published

A notification and status bar library for AngularJS applications

Downloads

12

Readme

CS-Status

A CrawlorSoft Open-Source release for a lightweight AngularJS status bar and notification system for web applications.

Background

While using web applications, the user is repeatedly bombarded with floating notification bubbles and information. Occasionally, these notifications cover important fields, data, or other information. While these instances are rare in a well designed user interface, they can still occur and cause incredible user confusion and difficulties.

CS-Status is designed to alleviate this issue by removing or preventing the pop-in nature of notifications while maintaining a persistent list of notifications for the user to review.

Installation

The cs-notify package can be installed from either NPM or Bower for use in web applications.

To install via Bower: bower install --save cs-notify.

To install via NPM: npm install --save-dev cs-notify.

Build From Source

If you would like to build the package from source yourself you can do so as follows:

git clone https://github.com/CrawlorSoft/cs-notify.git cs-notify
cd cs-notify
gulp
gulp e2e

The gulp e2e step is optional and will run the e2e tests in Chrome to verify basic functionality.

Simple Usage

To add the notification drawer to a web application with glyphicons, add the following to your status bar:

    <cs-notifications data-ng-icon-set="iconSet"></cs-notifications>

and then:

  1. Register cs-notify as a dependency of your web app; and
  2. Add an import of csNotificationService to the page controller and capture the glyphicon icon set.

For example, if your page controller is currently:

angular.module('myApp', [])
    .controller('PageController', function() {
    });

This would change to:

angular.module('myApp', ['cs-notify'])
    .controller('PageController', ['csNotificationService', '$scope', function(csns, $scope) {
        $scope.iconSet = csns.bootstrapGlyphiconIconSet;
    }]);

General Functionality

  1. Status notifications may be placed into a status bar, located at the top or bottom of the page.
  2. The notification area of the status bar may be clicked on and reveal a pop-up drawer.

Upcoming Functionality

  1. The ability to have an icon only status area with a badge indicating the number of notifications received in this session.
  2. The ability to have notifications pop into the page, then travel to the cs-notification area.