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

maike-cli

v1.0.2

Published

NODEJS全栈开发快速生成工具

Readme

maike-cli

插件简介

maike-cli 插件是项目快速初始化工具及管理工具,包含

web 前端(可用于移动端或者微信公众号,采用 vant 框架)

server 服务(采用 egg.js 模板,用于服务器快速开发)

admin/pc 管理后台 (采用 element 模板,用于快速生成管理员后台)

create 快速创建egg模块,生成增删改查代码

git 一键版本提交

如何使用?

1 全局安装 maike-cli

  npm i maike-cli -g

2 命令行输入

  maike-cli -h || maike-cli -help
  输出内容:

  init service [初始化egg空项目]

  init web [初始化移动端空项目]

  init admin [初始化后台管理系]

  create app init [创建模块]

  create app swiper [创建轮播图]

  create app area [创建省市区模]

  git push [git 一键提交代码]

4 根据指令快速生成模板套件

 maike-cli init web | service | admin ---

5 模块生成器,包括创建模块,轮播图,省市区等会直接生成 mvcr 并将路由注册到主路由,同步数据库后即可使用功能接口

6 附加 模块中使用的 await ctx.toSuccess() & await ctx.toError() 可以自定义

创建文件 /PATH_TO_APP/app/extend/context.js
  'use strict';
  const _success = '操作成功'
  const _error = '操作失败'
  module.exports = {
    async toSuccess(msg = null, rows = null, count = null) {
      if (rows !== null && count !== null) {
        return {
          code: 1,
          msg: msg ? msg : _success,
          count,
          data: rows,
        };
      } else if (rows != null && count === null) {
        return {
          code: 1,
          msg: msg ? msg : _success,
          data: rows,
        };
      }
      return {
        code: 1,
        msg: msg ? msg : _success,
      };
    },
    async toError(msg = null) {
      // 记录日志
      return {
        code: 0,
        msg: msg ? msg : _error,
      };
    },
  }

前提

你的电脑需要已经配置好 node npm git