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

alertifylib

v1.0.0

Published

Librería de alertas con estilos.

Readme

AlertifyLib

Una librería ligera y personalizable en JavaScript para mostrar alertas con iconos y funcionalidad de cierre automático. Las alertas se pueden crear y mostrar fácilmente con varios estilos según el tipo (éxito, advertencia, información, peligro, oscuro).

Características

  • Muestra diferentes tipos de alertas (éxito, advertencia, información, peligro, oscuro).
  • Cierre automático de las alertas después de un tiempo determinado (3 segundos).
  • Iconos personalizables según el tipo de alerta.
  • Las alertas se apilan verticalmente y están centradas en la pantalla.
  • Opción de cerrar las alertas manualmente.
  • Integración sencilla en tus proyectos web.

Instalación

Puedes instalar esta librería usando npm o utilizarla directamente a través de un CDN.

Uso

Una vez instalada, puedes importar la librería en tu proyecto JavaScript y usar la función createAlert para crear y mostrar las alertas.

Tipos de Alerta

La función createAlert acepta dos parámetros:

  • type: El tipo de alerta (cadena de texto). Los valores posibles son:

    • 'success': Fondo verde con un icono de check.
    • 'warning': Fondo amarillo con un icono de exclamación.
    • 'info': Fondo azul con un icono de círculo de información.
    • 'danger': Fondo rojo con un icono de círculo de cruz.
    • 'dark': Fondo oscuro con un icono de círculo de pregunta.
  • message: El mensaje que se mostrará en la alerta (cadena de texto).

Personalización

Puedes personalizar los estilos de las alertas modificando el archivo styles.css que viene incluido en el paquete. También puedes sobrescribir estos estilos con tu propio CSS personalizado.

Cierre Automático

Las alertas desaparecerán automáticamente después de 3 segundos. Sin embargo, todavía podrás cerrarlas manualmente haciendo clic en el botón de cierre.

Si prefieres que la alerta no se cierre automáticamente, puedes eliminar o ajustar la función de temporizador dentro de la librería.

Contribuciones

¡Siéntete libre de hacer un fork de este proyecto, abrir problemas y enviar pull requests! ¡Tus contribuciones son bienvenidas!

Licencia

Este proyecto está bajo la Licencia MIT - consulta el archivo LICENSE para más detalles.