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

yidao_generator

v1.0.4

Published

该项目是一个用于构建和管理数据库模型、API 和其他相关资源的工具。它包含多个脚本文件,用于处理数据库表结构、生成代码模板、构建项目等任务。

Downloads

7

Readme

项目简介

该项目是一个用于构建和管理数据库模型、API 和其他相关资源的工具。它包含多个脚本文件,用于处理数据库表结构、生成代码模板、构建项目等任务。

功能概述

  • 构建 API:根据数据库表结构生成对应的 API 代码。
  • 构建模型:根据数据库表结构生成对应的模型代码。
  • 构建数据库结构:根据配置生成数据库表结构和 SQL 脚本。
  • 比较 SQL:比较两个数据库结构之间的差异。
  • 文件同步:同步文件到指定目录。
  • 工具函数:提供各种实用函数,如文件操作、字符串处理等。

目录结构

  • src/:项目源代码目录。
    • scripts/:包含各种构建和处理脚本。
      • build_apis_after_step1.js:构建 API 的脚本。
      • build_models_after_step1.js:构建模型的脚本。
      • build_schema_after_step1.js:构建数据库结构的脚本。
      • build_view_after_step1.js:构建视图的脚本。
      • sqlBuilder.js:SQL生成 的脚本。
      • cp.js:文件同步脚本。
      • files.js:文件处理脚本。
      • filter.js:过滤脚本。
      • filter_data.js:数据过滤脚本。
      • build_project.js:构建项目的脚本。
      • fromJsonConfig.js:从 JSON 配置生成代码的脚本。
      • util.js:工具函数脚本。
    • index.ts:入口文件,用于导入所有脚本。

使用方法

  1. 安装依赖:

    npm install
  2. 运行构建脚本:

    npm run build
  3. 运行其他脚本:

    npm run <script-name>

贡献指南

欢迎贡献代码!请遵循以下步骤:

  1. Fork 本仓库。
  2. 创建一个新的分支(git checkout -b feature/your-feature-name)。
  3. 提交更改(git commit -am 'Add some feature')。
  4. 推送到你的分支(git push origin feature/your-feature-name)。
  5. 创建一个新的 Pull Request。

许可证

本项目采用 MIT 许可证。详情请见 LICENSE 文件。