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

@chase-shao/vue-component-lib

v1.2.88

Published

[![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)](https://github.com/your-username/vue-component-lib)

Downloads

695

Readme

Vue Component Library

Build Status

一个现代化的 Vue 3 组件库,使用 Vite 构建,支持 TypeScript 和 <script setup> 语法。

特性

  • 🚀 Vite 驱动 - 极快的构建速度和开发体验
  • Vue 3 - 完全支持 Composition API 和 <script setup>
  • 📦 TypeScript - 完整的类型支持
  • 🎨 CSS 模块化 - 组件样式独立打包
  • 📚 多格式输出 - ES、CJS、UMD 多种格式支持

安装

npm install vue-component-lib
# 或
pnpm add vue-component-lib
# 或
yarn add vue-component-lib

使用

作为 Vue 插件使用

import { createApp } from 'vue'
import MyPlugin from 'vue-component-lib'
import 'vue-component-lib/dist/index.css'

const app = createApp({})
app.use(MyPlugin)

单独导入组件

import { MyComponent } from 'vue-component-lib'
import 'vue-component-lib/dist/index.css'

开发

# 克隆项目
git clone https://github.com/your-username/vue-component-lib
cd vue-component-lib

# 安装依赖
pnpm install

# 开发模式(监听文件变化)
pnpm dev

# 构建
pnpm build

# 预览构建结果
pnpm preview

构建输出

  • dist/index.es.js - ES 模块版本
  • dist/index.cjs.js - CommonJS 版本
  • dist/index.umd.js - UMD 版本(浏览器直接使用)
  • dist/index.d.ts - TypeScript 类型声明
  • dist/index.css - 组件样式

技术栈

  • 构建工具: Vite
  • 框架: Vue 3
  • 语言: TypeScript
  • 样式: CSS with Scoped Styles

许可证

MIT License

npm test builds the library, then tests it.

Variations

  • babel — illustrates writing the source code in ES2015 and transpiling it for older environments with Babel
  • buble — similar, but using Bublé which is a faster alternative with less configuration
  • TypeScript — uses TypeScript for type-safe code and transpiling

License

MIT.