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

xyy-mirco-core

v0.0.2

Published

基于 Vue 3 + TypeScript + Vite 的现代化微前端核心库。

Readme

XYY Mirco Core

基于 Vue 3 + TypeScript + Vite 的现代化微前端核心库。

技术栈

  • Vue 3 - 渐进式 JavaScript 框架
  • TypeScript - JavaScript 的超集
  • Vite - 下一代前端构建工具
  • Vue Router - Vue.js 官方路由管理器
  • Pinia - Vue 的状态管理库
  • Element Plus - 基于 Vue 3 的组件库
  • SCSS - CSS 预处理器
  • ESLint - 代码检查工具
  • Prettier - 代码格式化工具
  • Axios - HTTP 客户端
  • Ali OSS - 阿里云对象存储服务

功能特性

  • 🚀 基于 Vue 3 + TypeScript 开发的微前端核心库
  • 📦 使用 Vite 作为构建工具,支持 ESM 和 UMD 格式
  • 🎨 集成 Element Plus UI 组件库
  • 🔍 集成 ESLint + Prettier 代码规范
  • 📦 使用 Pinia 进行状态管理
  • 🛣️ 基于 Vue Router 的路由管理
  • 🌐 支持主流现代浏览器
  • 📤 支持阿里云 OSS 上传功能

浏览器兼容性

项目支持以下浏览器版本:

  • Chrome >= 61
  • Firefox >= 60
  • Edge >= 16
  • Opera >= 48
  • Safari >= 11

开发环境要求

  • Node.js >= 16.0.0
  • npm >= 7.0.0 或 yarn >= 1.22.0

安装和使用

  1. 安装依赖
npm install xyy-mirco-core
# 或
yarn add xyy-mirco-core
  1. 在项目中使用
// ESM
import xyy from 'xyy-mirco-core'

// CommonJS
const xyy = require('xyy-mirco-core')

开发指南

  1. 克隆项目
git clone [项目地址]
cd xyy-mirco-core
  1. 安装依赖
npm install
# 或
yarn install
  1. 启动开发服务器
npm run dev
# 或
yarn dev
  1. 构建库
npm run build
# 或
yarn build
  1. 代码检查
npm run lint
# 或
yarn lint
  1. 代码格式化
npm run format
# 或
yarn format

项目结构

xyy-mirco-core/
├── dist/               # 构建输出目录
├── package/           # 包相关文件
├── public/            # 静态资源
├── release/           # 发布相关脚本
├── src/               # 源代码
│   ├── assets/       # 主题、字体等静态资源
│   ├── components/   # 组件
│   ├── router/       # 路由
│   ├── stores/       # Pinia 状态管理
│   ├── styles/       # 全局样式
│   ├── types/        # TypeScript 类型定义
│   └── utils/        # 工具函数
├── .eslintrc.js      # ESLint 配置
├── .prettierrc       # Prettier 配置
├── index.html        # HTML 模板
├── package.json      # 项目配置
├── tsconfig.json     # TypeScript 配置
└── vite.config.ts    # Vite 配置

构建输出

构建后的文件位于 dist 目录:

  • mirco-core.es.js - ES Module 格式
  • mirco-core.umd.js - UMD 格式
  • types/ - TypeScript 类型定义文件

代码规范

项目使用 ESLint + Prettier 进行代码规范检查和格式化:

  • ESLint 配置:.eslintrc.js
  • Prettier 配置:.prettierrc

发布流程

  1. 更新 package.json 中的版本号
  2. 运行构建命令:npm run build
  3. 发布到 npm:npm publish