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

@besovideo/webclient-avatar

v0.0.19

Published

![npm](https://img.shields.io/npm/v/@besovideo/webclient-avatar) ![NPM](https://img.shields.io/npm/l/@besovideo/webclient-avatar) ![npm](https://img.shields.io/npm/dt/@besovideo/webclient-avatar)

Readme

@besovideo/webclient-avatar

npm NPM npm

NPM

简介 Introduction

bvwebclient 的头像和头像编辑组件 vue3 版

安装 Installation

use npm

npm i @besovideo/webclient-avatar

use yarn

yarn add @besovideo/webclient-avatar

使用 Usage

Vue3 Component Example

<template>
  <Avatar
    :type="type"
    :targetId="id"
    :token="'Y3UrQ1VfYWRtaW4rYWRtaW4rMTg3NSs3ODU3NDArMTYyNTczOTc2NSs5Yzk0ODIwNjJlOGNhZjJj'"
    :apiPrefix="'http://192.168.88.11:9780'"
    size="40px"
    editable
    @on-info="handleInfo"
    @on-error="handleError"
    :style="{ marginRight: '16px' }"
  />
</template>

<script>
import { defineComponent, reactive, toRefs } from "@vue/runtime-core";
import { Avatar, SetDefaultImage } from "@besovideo/webclient-avatar";
import "@besovideo/webclient-avatar/dist/style.css";

//设置全局默认头像,type支持'User'、‘PU’、'IMGroup'
//SetDefaultImage(type, url)

export default defineComponent({
  components: {
    Avatar,
  },
  setup() {
    const state = reactive({
      type: "User",
      id: "admin",
    });

    const handleError = (e) => {
      console.error("test AvatarEditor", e.message);
    };

    const handleInfo = (msg) => {
      console.log("test AvatarEditor info", msg);
    };

    return {
      ...toRefs(state),
      handleError,
      handleInfo,
    };
  },
});
</script>

Props

export default {
  // 事件 @on-error @on-info
  emits: ["on-error", "on-info"],
  props: {
    // type 类型 用户'User' 、 设备‘PU’ 、 群组'IMGroup'
    type: {
      type: String,
      required: true,
    },
    // targetId 用户或者设备Id 与type对应
    targetId: {
      type: String,
      required: true,
    },
    // editable 头像是否可被编辑 为true时 点击头像将弹出头像编辑
    editable: {
      type: Boolean,
      default: () => false,
    },
    // size 大小 对应css height width 可取像素或百分比等 -eg: 100px、 100%
    size: {
      type: String,
      default: "40px",
    },
    // circle 是否是圆形
    circle: {
      type: Boolean,
      default: false,
    },
    // token 用户授权令牌
    token: {
      type: String,
      default: "",
    },
    // apiPrefix 请求的url路径前缀 -eg: '/test_prefix' 、 'http://192.168.88.11:9780'
    apiPrefix: {
      type: String,
      default: "",
    },
    // defaultImage设置查询头像失败的默认显示图片
    defaultImage: {
      type: String || Boolean,
      default: false,
    },
  },
};

开发 Dev

# 开发运行
yarn
yarn dev

# 打包和发布
yarn build
yarn publish