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

ant-g

v0.9.10

Published

antDesignPro辅助代码生成器

Downloads

20

Readme

Cli for Ant Design Pro

Generate service mock page according to the table of the database

  • [x] generate service
  • [x] generate mock
  • [x] generate Page
  • [x] auto modify menu and route
  • [ ] generate test

1. Install

npm i -g ant-g

2. Usage Example

2.1 Create Ant Design Pro

Create a new empty folder as project root. Execute command in the folder:

npm create umi

must select TypeScripte

2.2 Use Ant-g

Execute command in the folder: ant-g

$ ant-g
? Select the boilerplate type (Use arrow keys)
> init                      - Create g-config.json config file for generator
  initDataStructure         - Create data structure file from database, this file save /.g
  dependencies              - Add dependencies to the project
  service                   - Create service and data.d from db
  mock                      - Create mock from db
  pageConfig                - Create page config file for generator page
  pageGenerate              - Create page from config file

detail manual-cn

3. FAQ

3.1 mysql connect

08004 error

error message

Client does not support authentication protocol requested by server; consider upgrading MySQL client

The reason is that the initial password of the database is not configured. Execute the following command on the MySQL command line:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your password';
SELECT plugin FROM mysql.user WHERE User = 'root';

4. Change Logs

0.9.10

2020-01-16

  • 🐞 fix searchForm date bug.

0.9.9

2020-01-13

  • simple page template
    • ⚡ Promote display and edit form by data type.

0.9.8

2020-01-10

  • 🐞 fix searchForm.less missed bug.

0.9.7

2020-01-10

  • ⚡ Added the function of configuring MySQL
  • ⚡ Added shortcut command

0.9.6

2020-01-02

  • ⚡ Add prettier module to prettier the code

  • ⚡ Add generate page's code