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

@jysperu/vuejs-imageinput

v1.1.0

Published

Componente VueJS de ImageInput

Readme

Componente ImageInput para VueJS

Instalación

CDN

<script src="https://unpkg.com/@jysperu/vuejs-imageinput@latest/dist/imageinput.umd.js"></script>

NPM

npm i @jysperu/vuejs-imageinput

Uso

Import

import imageinput from "@jysperu/vuejs-imageinput";

Require

const imageinput = require("@jysperu/vuejs-imageinput");

Browser

const { ImageInput } = JCore.VueJS;

Ejemplo Básico

<template>
  <imageinput v-model="imagen" />
</template>

<script setup>
// Obtener el componente
import imageinput from "@jysperu/vuejs-imageinput";

// Variable que aloja la imágen
import { ref } from "vue";
const imagen = ref(null);
</script>

Ejemplo Avanzado

<template>
  <imageinput 
    v-model="imagen" 
    :circle="true" 
    :max-size="5" 
    :quality="0.9" 
    :disabled="false" 
    placeholder="Selecciona una foto de perfil"
    objeto="foto de perfil"
    accept=".jpg,.png,.webp"
    :alw-camera="true"
  />
</template>

<script setup>
import imageinput from "@jysperu/vuejs-imageinput";
import { ref } from "vue";

const imagen = ref("https://example.com/default-image.jpg");
</script>

Props

| Prop | Tipo | Default | Descripción | |------|------|---------|-------------| | id | String | "imageinput" | ID único del componente | | name | String | - | Nombre del campo para formularios | | required | Boolean | false | Si el campo es requerido | | modelValue | String | null | Valor del modelo (URL de la imagen) | | bgempty | String | URL de placeholder | Imagen de fondo cuando no hay imagen | | objeto | String | "imágen" | Nombre del objeto para textos (e.g., "foto", "imagen") | | accept | String | ".png, .jpg, .jpeg, .webp" | Tipos de archivo aceptados | | alw-camera | Boolean | true | Permitir tomar fotos con cámara | | circle | Boolean | false | Mostrar como círculo | | max-size | Number | 10 | Tamaño máximo en MB | | quality | Number | 0.8 | Calidad de compresión (0-1) | | disabled | Boolean | false | Deshabilitar el componente | | placeholder | String | "" | Texto alternativo para accesibilidad |

Eventos

| Evento | Descripción | |--------|-------------| | update:modelValue | Se emite cuando cambia el valor | | change | Se emite cuando cambia la imagen |

Dependencias

  • Vue 3
  • Bootstrap 5
  • jQuery
  • toastr
  • JFile (para drag & drop)