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

autoquickcode

v1.11.2

Published

使用plop自动生成代码的工具

Readme

AutoCode

项目简介

这是一个基于plop的代码自动生成工具,通过配置好的模板来快速生成代码,提高开发效率。无论在哪个目录下执行命令,都会在当前目录下生成文件。

安装

本地安装

# 安装依赖
npm install autoquickcode

# 链接到项目中使用
npm link autoquickcode

全局安装

# 全局安装
npm install -g autoquickcode

# 或者从本地代码安装
git clone <repo-url>
cd autocode
npm install
npm link

使用方法

# 显示版本号
quick -v
# 或
quick --version

# 生成代码
quick
# 然后按照提示选择模板和输入配置

配置说明

plop的配置文件位于plopfile.js,你可以在此文件中定义各种生成器。

目录结构

├── bin/                # 命令行工具
├── plopfile.js         # plop配置文件
├── generators/         # 生成器配置
│   └── wfPage/         # 页面生成器
├── templates/          # 模板目录
│   ├── wfPage/         # 页面模板
│   │   ├── components/ # 页面组件模板
│   │   └── ...         # 其他模板文件
└── ...

支持的模板

目前支持的模板类型:

  • 带台账的流程表单
  • 不带台账的流程表单

自定义模板

你可以通过修改templates目录下的文件来自定义模板,使用{{name}}这样的占位符来表示动态内容。

开发指南

如果你想开发新的模板或修改现有模板:

  1. generators目录下创建新的生成器配置
  2. templates目录下添加对应的模板文件
  3. plopfile.js中注册你的生成器

贡献

欢迎提交Issue和Pull Request

许可证

MIT

发布到npm

  1. 首先确保已登录npm账号:
npm login
npm version patch
npm publish