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

aux-comp

v0.0.17

Published

<h1>前端-npm共享资源库(内部组件含特定资源生效,他人使用无效)</h1>

Downloads

43

Readme

  • 最新技术栈:使用 Vue3/vite6 等前端前沿技术开发
  • TypeScript: 应用程序级 JavaScript 的语言

资源发布npm

  • 1 确定需要发布的资源文件以ToPo为例在index.ts中引入并暴露组件,例如组件名称定义为AuxTopoPreview ,暴露install方法注册app.use()用

  • 2 编写完成后执行打包依赖,生成dist目录文件

 npm run build
  • 3 发布前登陆发布身份(如已添加则可跳过),确保自己的npm register为官方的url.每次发布都需要确保
  • 3.1查看register
 npm config get registry
  • 3.2查看register
 npm config set registry https://registry.npmjs.org/
  • 3.3 添加发布账号信息,填写用户名 邮箱以及邮箱确认码(即添加秘钥到npm仓库),此法过程会出现403问题(即使翻墙也没用) (设置proxy以及https-proxy为本地代理),以windows为例,右键选个性化,搜索代理(选择代理服务器设置),找到使用代理服务器并打开保存,可获取本地IP地址以及端口
 npm config set proxy http://[IP]:[Port]
 npm config set https-proxy http://[IP]:[Port]
 npm adduser
  • 4 执行发布命令(目前包发在stans上,如有疑问可联系我)
 npm publish
  • 使用组件(需要引入css)
   import { AuxTopoPreview } from 'aux-comp'; //也可在main.js全局引入app.use(),因为暴露了install方法