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 🙏

© 2024 – Pkg Stats / Ryan Hefner

yqb-cli

v1.0.8-beta

Published

```bash # Install deps $ npm install -g yqb-cli # # start $ yqbgen start # (1) ? 请输入配置文件地址:D:\workspace\Yqb\iData\src\init.config.ts # (2) ? 选择Server # dispService # > portalServer # switchCenter # dataQuality # (3) ? 选择生

Downloads

19

Readme

Services,Actions,Models 生成小工具

Getting Started

# Install deps
$ npm install -g yqb-cli
#
# start
$ yqbgen start
# (1) ? 请输入配置文件地址:D:\workspace\Yqb\iData\src\init.config.ts
# (2) ? 选择Server
#       dispService
#     > portalServer
#       switchCenter
#       dataQuality
# (3) ? 选择生成文件类型
#       All(Actions, Services, Models)
#     > Actions
#       Services
#       Models
# >>>>>>>>>>>>>>>>>>>> [ Select All 【需要输入项目地址】 ] >>>>>>>>>>>>>>>>>>>>
#
# (4-1) ? 请输入生成文件项目路径:eg:D:/workspace/mis2/src/: D:\workspace\Yqb\iData\src
#         >>>> 将在 D:\workspace\Yqb\iData\src\actions\   目录下生成actions文件
#         >>>> 将在 D:\workspace\Yqb\iData\src\services\  目录下生成services文件
#         >>>> 将在 D:\workspace\Yqb\iData\src\models\    目录下生成models文件
#
# >>>>>>> [ Select Acctions\Services\Models 【需要输入对应文件夹地址】 ] >>>>>>>
#
# (4-2) ? 请输入生成Actions的路径:eg:D:/workspace/mis2/src/actions: D:\workspace\Yqb\iData\src\actions
#         >>>> 将在 D:\workspace\Yqb\iData\src\actions\   目录下生成actions文件
#
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [ Success ] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#
#   即将在:D:\workspace\Yqb\iData\src\actions\portalServer 生成Actions文件
#   D:\workspace\Yqb\iData\src\actions\portalServer\news.ts ,文件生成成功
#   D:\workspace\Yqb\iData\src\actions\portalServer\user.ts ,文件生成成功
#   D:\workspace\Yqb\iData\src\actions\portalServer\manager.ts ,文件生成成功
#   D:\workspace\Yqb\iData\src\actions\portalServer\menu.ts ,文件生成成功
#
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [ Error ] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#
# D:\workspace\Yqb\iData\src\actions\portalServer, 已经存在
# 选择推出或者重新选择需要生成文件的Server
# 选择推出或重新从(2) 开始选择

配置文件说明

  1. 文件类型支持 .ts | .js
  2. 文件必须包含默认导出配置对象,即 export default config 或 export['default'] = config; // config 为配置对象
interface config {
  [K: string]: any;
  api: {
    [serverName: string]: {
      [controllerName: string]: {
        [methodName: string]: string; // string 的格式为 'GET|POST /methodurl'
      };
    };
  };
}

const config: config = {
  name: "",
  xxx: "",
  api: {
    dispService: {
      qy: {
        getHdAppUrl: `GET /api/disp-service/qy/getHdAppUrl`,
        getThemeList: `GET /api/disp-service/qy/getThemeList`,
        getDolList: `GET /api/disp-service/qy/getDolList`
      },
      op: {
        rerun: `GET /api/disp-service/op/rerun`,
        succeed: `GET /api/disp-service/op/succeed`,
        fail: `GET /api/disp-service/op/fail`,
        rerunBranch: `POST /api/disp-service/op/rerunBranch`,
        modifyStart: `GET /api/disp-service/op/modifyStart`,
        saveTaskConf: `POST /api/disp-service/op/saveTaskConf`,
        rmTask: `GET /api/disp-service/op/rmTask`
      }
    }
  }
};

License

MIT