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

create-template-generator

v0.0.1

Published

后台管理系统页面基本相似,每次开发新页面都得复制旧页面,然后在此基础上进行修改。

Downloads

7

Readme

业务页面生成器(内部使用,仅供参考)

后台管理系统页面基本相似,每次开发新页面都得复制旧页面,然后在此基础上进行修改。

如果页面字段过多,往往修改时间会比较长:十几分钟甚至半小时。

为了减少重复操作,写了个业务页面生成器,在配置文件上输入你想要的组件,然后生成器会根据配置文件自动生成页面。

此页面除了生成对应的组件 HTML 代码外,还会生成变量和方法(空函数)。

相对来说,不需要你再进行复制、修改的操作,虽然节省的时间不多。

但至少不用像流水线工人一样,每次开发新页面都得进行重复的操作。

操作流程

  1. 执行 git clone https://github.com/wuzhiquan/platform-template-generator.git 命令,克隆项目。
  2. 执行 npm i,安装依赖。
  3. 执行 npm link,生成全局命令。
  4. 切换到工作项目,在该项目下打开命令行,执行 ct,生成 template.js 默认模板文件。
  5. 在此模板上进行修改,根据要生成的页面作相应的改动。
  6. 执行 cpa 命令,根据模板文件 template.js 生成页面 index.vue 文件(可在 template.js 文件设置 name 属性来配置文件名称)。

1~3 只需要执行一次,以后要生成模板和文件都只需要从第 4 步开始执行。