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

admgen

v1.0.8

Published

generate view & controller

Readme

Github url: https://github.com/Fox-54500/admgen

#1、How to use #####please use it in your admin project:

$ npm i -g admgen

#####then:

$ admgen generate(or g) modules <your module> <your key>

e.g. $ admgen g modules RetailOrder retail_order 

#####it will generate route file,base controller and view,create dialog controller and view

#####then you just need to go app.js mount your route, that's all

#2、Other #####besides generate a module,you can generate a base controller separately: $ admgen generate basectrl

| name | function | |-------|------| |module|generate module | route|generate route File seperately | basectrl|generate base ctrl File seperately | createctrl|generate create ctrl File seperately | view|generate view File seperately | createview|generate create view File seperately

#3、Attention #####if the module exists which you will generate,new code will overwrite the module.


#1、怎么使用 #####请在你的admin项目中使用 $ npm i -g admgen

#####然后: $ admgen generate(或者 g) modules <你的模块> <你的模块标识>

 例如: $ admgen g modules RetailOrder retail_order
 

#####然后它将会帮你生成路由文件,基础的视图文件与控制器文件,新增弹窗的控制器与视图

#####然后你只需要到当前项目的app.js 中去挂载你的路由就行了, 就这些了。

#2、其他 #####除了直接生成模块,你还可以单独生成一个模块里面的某个文件: $ admgen generate basectrl

| 名称 | 功能 | |-------|------| |module|生成 模块 | route|单独生成 路由文件文件 | basectrl|单独生成 基础控制器文件 | createctrl|单独生成 新增弹窗控制器文件 | view|单独生成 基础视图文件 | createview|单独生成 新增弹窗视图文件

#3、注意 #####如果你即将生成的模块已经存在了,那么它将会覆盖你原来的代码(我会在下个版本改进这个问题)