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

notifice

v1.2.2

Published

NotificeJS is a lightweight and easy-to-use library for creating customizable notifications in your web applications. With a simple and intuitive API, you can easily create notifications with custom messages, styles, and behavior. Whether you need to disp

Downloads

6

Readme

notificeJS

notificeJS is a JavaScript library that allows you to easily create and display notifications on your web page.

Installation

To use notificeJS, you will need to include the library in your project. You can do this by either downloading the library from the GitHub repository, or by using a package manager like npm.

Downloading the Library

  1. Download the library from the GitHub repository

    https://github.com/DipankajSingh/notifice.js

  2. Extract the contents of the downloaded zip file
  3. Include the notificeJS.js file in your HTML file.

HTML

<script src="./notificeJS/notificeJS.js"></script>

Using NPM

  1. Install the library using npm: npm install notificeJS
  2. Import the library in your JavaScript file:

javascript

import notificeJS from "notificeJS";

Usage

To use notificeJS, you will need to create a new instance of the Notifice class, and configure it with your desired options.

javascript

const notification = new Notifice({
  message: "Hello, World!",
  type: "success",
  position: "top-right",
});

The Notifice class accepts an options object, which can contain the following properties:

  • message: The message to be displayed in the notification.
  • type: The type of notification to be displayed. This can be one of: success, info, warning, or error.
  • position: The position on the screen where the notification should be displayed. This can be one of: top-left, top-right, bottom-left, or bottom-right.

Once you have created a new instance of the Notifice class, you can display the notification by calling the show() method.

javascript

notification.show();

Examples

Here is an example of how you can use notificeJS to display a success notification in the top-right corner of the screen:

javascript

const notification = new Notifice({
  message: "Task completed successfully!",
  type: "success",
  position: "top-right",
});

notification.show();

And here is an example of how you can display an error notification in the bottom-left corner of the screen:

javascript

const notification = new Notifice({
  message: "An error occurred",
  type: "error",
  position: "bottom-left",
});

notification.show();

Conclusion

notificeJS is a simple and easy-to-use library for creating and displaying notifications on your web page. With its flexibility and customizable options, notificeJS is a great tool for adding notifications to your web projects.