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

isui-vue

v1.0.1

Published

A Vue.js project

Readme

isui-vue

A high quality UI Toolkit, A Component Library for vue 2.0. 💘

文档

Visit the http://nodedai.com/isui-vue website for more information.

构思

借用isui的思想,维护markdown文档就可以实现代码和效果的vue组件

面临的问题

  • 维护md文档,用一套代码实现代码复制和实例
  • 选择代码高亮
  • 按组件打包出来
  • 又想结合iview写法
  • iview组件太多,由页面转markdown文档太慢,太累

解决方案

  • 使用vue-cli快速搭建项目
  • 基本引用isui项目目录结构与样式
  • 组件沿用iview样式与写法(以后有时间好好注意细节)
  • 使用vue-markdown,vue-marked-loader,text-loader等组件对md文件处理
  • 不想拷贝,那就用node,fs读写操作
  • 使用了cheerio对html进行解析,实现了一般table转成markdown写法

预览效果

安装

npm install isui-vue --save

引入isui-vue

import Vue from 'vue';
import VueRouter from 'vue-router';
import App from 'components/app.vue';
import Routers from './router.js';
import isui from 'isui-vue';
Vue.use(VueRouter);
Vue.use(isui);

按需引用

借助插件 babel-plugin-import可以实现按需加载组件,减少文件体积。首先安装,并在文件 .babelrc 中配置:

npm install babel-plugin-import --save-dev

// .babelrc
{
  "plugins": [["import", {
    "libraryName": "isui-vue",
    "libraryDirectory": "src/components"
  }]]
}

然后这样按需引入组件,就可以减小体积了:

import { Button, Table } from 'isui-vue';
Vue.component('Button', Button);
Vue.component('Table', Table);

构建

// 下载
git clone https://github.com/shawn2016/isui-vue.git
// 安装依赖
npm install
// 运行 #8080
npm start
// 构建
npm run build

目录结构

├── dist           # 生成的文档静态文件目录
├── docs           # 文档的源文件  
|————├── locales
|    ├── md     md源文件
|    ├── node   md生成器
|    └── pages  vue页面       
├── package.json
├── examples
└── src            # Vue组件在此

感谢

本组件库基于 iview 修改,感谢!

License

Licensed under the MIT License.