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

zsl-test-tree-ui

v1.0.2

Published

zsl-test-tree-ui

Downloads

335

Readme

zsl-test-tree-ui 包描述使用文档

项目概述

  • 包名称: zsl-test-tree-ui
  • 版本: 1.0.0
  • 描述: 一个基于 React 的树形 UI 组件库
  • 类型: ES Module 构建系统

主要特性

  • 🌳 树形结构组件 - 提供完整的树形数据展示功能
  • ⚛️ React 驱动 - 基于 React 19.x 开发
  • 📦 多种格式输出 - 支持 CJS 和 ES 模块格式
  • 🔤 TypeScript 支持 - 提供完整的类型定义

安装指南

# 使用 npm
npm install zsl-test-tree-ui

# 使用 yarn
yarn add zsl-test-tree-ui

构建脚本

  • npm run dev - 启动开发服务器
  • npm run build - 构建生产版本

输出文件结构

  • dist/ui.cjs.js - CommonJS 格式入口
  • dist/ui.es.js - ES Module 格式入口
  • dist/ui.d.ts - TypeScript 类型定义文件
  • docs/ - 项目文档目录
  • example/ - 示例代码目录

技术栈

  • 前端框架: React 19.2.3
  • 构建工具: Vite 7.3.1
  • 类型检查: TypeScript + @types/node
  • 开发依赖: vite-plugin-dts 用于类型生成

使用示例

import { TreeComponent } from 'zsl-test-tree-ui';

function App() {
  return (
    <TreeComponent 
      data={treeData}
      // 配置项...
    />
  );
}

开发说明

项目采用现代前端开发工作流,支持热重载开发模式,可通过 npm run dev 启动开发环境。构建后的文件经过优化,适合在生产环境中使用。