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

hzlzh-react-ui

v0.0.5-6

Published

使用dumi开发的个人react组件库

Readme

使用 father 和 dumi 开发 react 组建库 reactUI

使用

npm i hzlzh-react-ui

记录

  • father 负责组建库源码的构建,dumi 负责组件的开发和文档生成
  • 使用 npx create-dumi 进行选择性创建库还是其它内容
  • 文档命名和文档路由使用的是中划线而非驼峰
  • pnpm store prune是清除缓存
  • 本地私服发包时也会向npm网站查询包是否重名
  • assert静态资源路径需要放在src下

发包的地址与本地使用的registry相关

  • 通过切换registry地址,一是更换本地npm包的下载地址,二是如果要发包的话,这个地址就是包要发上去的地址
  • 使用npm login 登录,npm logout登出
  • npm version 为版本升级命令,有6个参数,比如patch,major,minor
  • patch:补丁版本更新, minor:增加新功能, major:大改动
  • npm私服方案:verdaccio
  • verdaccio本地配置文件位置: /Users/用户名/.config/verdaccio/config.yaml
  • storage属性指定包存储位置
  • 发包npm publish,npm unpublish <包名>@版本号 --force (force可视情况加,不输入版本号就是删除整个包的所有版本)
  • jest添加对esm模式的支持,需要在jest.config.ts文件中添加transform对象列{'^.+\.tsx?$': 'ts-jest'},安装ts-jest插件
  • @testing-library/react的screen不支持id和class查询,但可以使用渲染后的container用原生querySelect等方式获取