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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hollynpm

v1.1.47

Published

A collection of Vue 3 UI components based on ant-design-vue and ele-admin-pro

Readme

Holly UI 组件库

基于 Vue 3 的轻量级内部组件库,提供了一系列实用的基础组件和业务组件。

安装

# 使用 npm
npm install holly-npm

# 使用 yarn
yarn add holly-npm

# 使用 pnpm
pnpm add holly-npm

使用方式

全局注册(推荐)

import { createApp } from 'vue'
import App from './App.vue'
import hollynpm from 'hollynpm'

const app = createApp(App)
app.use(hollynpm)
app.mount('#app')

按需引入

import { allComponents } from 'holly-npm'
const { HollyButton, HollyInput } = allComponents

export default {
  components: {
    HollyButton,
    HollyInput
  }
}

组件列表

基础组件

组件库提供了一系列基础组件,位于 basic 目录下。

业务组件

业务相关的组件位于 business 目录下。

全局工具方法

组件库提供了一系列全局工具方法,可以通过 $utils 访问。

在组件中使用

// 选项式 API
export default {
  methods: {
    someMethod() {
      this.$utils.someUtilMethod()
    }
  }
}

// 组合式 API
import { getCurrentInstance } from 'vue'

export default {
  setup() {
    const { proxy } = getCurrentInstance()
    
    const handleClick = () => {
      proxy.$utils.someUtilMethod()
    }
    return {
      handleClick
    }
  }
}

直接导入使用

import { utils, getModule } from 'holly-npm'
// 使用工具方法
utils.someMethod()
// 使用 getModule 方法
getModule('moduleName')

国际化

在组件中使用

// 选项式 API
export default {
  methods: {
    someMethod() {
      this.$tran('BTN_SAVE')
    }
  }
}

// 组合式 API
import { getCurrentInstance } from 'vue'
export default {
  setup() {
    const { proxy } = getCurrentInstance()
    const handleClick = () => {
      proxy.$tran('BTN_SAVE')
    }
    return {
      handleClick
    }
  }
}

<setup> defineProps 中不能使用

defineProps 的配置会被编译到 setup() 函数外部,而 <script setup> 中的局部变量(如通过 getCurrentInstance() 获取的变量)只能在 setup() 内部访问,导致编译时引用失败

浏览器支持

  • 支持所有现代浏览器
  • 支持服务端渲染(SSR)
  • 支持 CDN 引入

开发计划

  • [ ] 添加更多基础组件
  • [ ] 完善文档和示例
  • [ ] 提供组件测试用例
  • [ ] 优化打包体积

贡献指南

欢迎一起完善这个组件库。