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

xzj-components-vue2

v1.1.1

Published

新增执行进度,环形排名,3D饼图组件, 改造原柱形图组件兼容存量大屏中柱形图

Readme

  1. 在packages下创建组件文件夹, 用于存放组件

  2. 在packages下创建index.js文件, 引用所有组件, 示例代码如下:

import xTable from "./x-table";
import "./css/index.scss"

const components = [
  xTable
];

const install = function(Vue) {
  components.forEach(component => {
    Vue.component(component.name, component);
  });
};

if (typeof window!== "undefined" && window.Vue) {
  install(window.Vue);
}

export default {
  version: "1.1.1",
  xTable,
  install
};
  1. 在package.json 文件新增打包命令, target: 改为 lib 可启用构建库模式应用模式,name: 构建库输出的文件名;,dest: 构建的输出目录默认为 dist;entry: 打包入口文件路径;修改private属性为 false,
 "lib": "vue-cli-service build --target lib --name xzj-echarts --dest xzj-table ./src/packages/index.js"
  1. 在打包后生成文件目录下打开cmd, 输入命令登录私服,用户名: user,密码: 1234@abcD, 邮箱: [email protected]
npm login --registry=http://192.168.18.107:8081/repository/xzj-npm/
  1. 登录成功后输入命令上传插件
npm publish --registry=http://192.168.18.107:8081/repository/xzj-npm/
  1. 上传后登录私服网址查看是否成功

截图

截图

  1. 安装本地私服插件命令
npm install xzj-table --registry=http://192.168.18.107:8081/repository/xzj-npm/

安装完成后在项目main.js文件中引用组件和样式

import xzjTable from 'xzj-table'
import 'xzj-table/dist/xzj-table.css'
Vue.use(xzjTable)