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

npx-arc-ui

v2.0.2

Published

Componentes y servicios varios

Readme

NPX-ARC-UI Static Badge Static Badge

Librería múltiples componentes y servicios.

Features

  • Sistema de alertas
  • Componente OTP (Factor de autenticación)
  • Componente de carga
  • Utils [Conjunto de funciones Vanilla Js]

Instalación

Requiere una versión compatible a angular 18 Node.js ^18.12 para desplegar.

Pasos de instalación.

npm i npx-arc-ui

Módulos


Loading

Uso Básico

<arc-loading 
    [muestraLoading]="true">
</arc-loading>

Uso Avanzado

<arc-loading 
    [retro]="true" 
    [muestraLoading]="true" 
    mensaje="Esto es un mensaje de pruebas">
</arc-loading>

Todas las opciones

  • [muestraLoading] - Muestra el componente loading
  • [mensaje] - Texto que se añade a loading en pantalla
  • [retro] - Cambio de imagen con logo antiguo

OTP

Uso Básico

<arc-otp-input 
    [length]="5" 
    [isPasswordInput]="false" 
    formControlName="code">
</arc-otp-input>

Uso Avanzado

<arc-otp-input 
    [length]="5" 
    [isPasswordInput]="false" 
    [inputStyles]="{
        "color": "#333"
    }"
    [containerStyles]="{
        "color": "#333"
    }"
    [allowNumbersOnly]="true"
    [disableAutoFocus]="false"
    placeholder="pruebas"
    formControlName="code">
</arc-otp-input>

Todas las opciones

  • [length] - Muestra la cantidad de campos necesarios
  • [isPasswordInput] - Define el tipo de casilla de texto si es text | tel | password
  • [inputStyles] - Permite modificar el diseño de cada campo de texto
  • [containerStyles] - Permite modificar el diseño del contenedor donde se encuentran los campos de textos
  • [allowNumbersOnly] - Permite solamente numeros
  • [disableAutoFocus] - Deshabilita el foco en la casilla de texto
  • [placeholder] - Texto en cada casilla de texto
  • formControlName - FormControl en caso que se utilice formularios reactivos

Snackbar

Uso

constructor(
    private snackbar: SnackbarService
)

onSucess(){
    const ref = this.snackbar.onSuccessMessage('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ut iaculis ipsum. Vestibulum vitae gravida felis. In et elit non elit scelerisque suscipit. Quisque id volutpat ligula. Nullam lectus.');
      ref.afterClosed.subscribe(c =>{
        console.log('Se cerro snackbar');
      })
  }

  onError(){
    const ref = this.snackbar.onErrorMessage('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque mollis pretium quis.');
    ref.afterClosed.subscribe(c =>{
      console.log('Se cerro snackbar');
    })
  }

  onWarning(){
    const ref = this.snackbar.onWarningMessage('que sucede señores');
    ref.afterClosed.subscribe(c =>{
      console.log('Se cerro snackbar');
    })
  }

Funciones

| Funciones | Descripción | | ------ | ------ | | replaceAll | Permite remplazar múltiples valores dentro de una cadena de texto | | setLocalStorage | Permite almacenar información en el localstorage del navegador de manera temporal | | getLocalStorage | Permite obtener un valor del localstorage | | removeLocalStorage | Permite remover un elemento en especifico del localstorage | | diffDays | Permite obtener la diferencia de días entre 2 fechas | | getToken | Método para obtener el token JWT decodificado y alojado en las cookies | | toDataURL | Convierte una URL de un recurso en una cadena de datos en formato Base64 | | uniquedID | Genera un código random de 19 caracteres | | getCookie | Permite obtener el valor de una cookie almacenada en el navegador | | setCookie | Permite almacenar información en cookies del navegador de manera temporal | | deleteCookies | Permite eliminar información de las cookies del navegador según el cname | | deleteAllCookies | Elimina todas las cookies del navegador | | cleanEmptyProperties | Permite limpiar las propiedad de un objeto que se encuentre vacío | | downloadFileWithLink | Genera un elemento a link descargable | | titleCase | Permite modificar la primera letra de un string | | mutableObjectKeyTitleCase | Permite modificar la key de un objeto | | isNullOrUndefined | Identifica si el objeto se encuentra null o undefined | | copyToClipboard | Permite selecciona algún contenido y lo copia al portapapeles. |

License

MIT