@fluidware-it/env2doc

中文文档
0.3.2发布于 2025/11/21ISCCommonJS近 30 天下载 2145

Documentation generator for EnvParse usage

原始使用文档

env2doc

This tool helps you to keep track of all environment variables used - if accessed through @fluidware-it/saddleback EnvParse functions.

Usage

it can be used via npx

npx @fluidware-it/env2doc -p /path/to/javascript/files

or it can be installed globally and then used

npm i -g @fluidware-it/env2doc

env2doc -p /path/to/javascript/files

by default, it outputs in Markdown format. Use -o json arg to output in JSON format

Examples

node @fluidware-it/env2doc -p ~/Projects/fluidware/express-microservice/build/src

## Environment variables

| ENV                           |     type |                        default | required |
| ----------------------------- | -------- | ------------------------------ | -------- |
| FW_MS_PRE_SHARED_TOKEN_PREFIX |   string |                                |          |
| FW_MS_PORT                    |  integer |                           8080 |          |
| FW_MS_LOG_404                 |  boolean |                          false |          |
| FW_MS_HOSTNAME                |   string |          default to hostname() |          |
| FW_MS_ADDRESS                 |   string |                                |          |
| FW_MS_ADDRESSES               | string[] |                                |          |
| FW_MS_TRUST_PROXY             | string[] | loopback,linklocal,uniquelocal |          |
| FW_MS_MAX_UPLOAD_SIZE         |   string |                          128kb |          |
| FW_MS_JWT_PUBLIC_KEY          |   string |                                |          |
| FW_MS_KEY                     |   string |                                |          |
| FW_MS_CERT                    |   string |                                |          |

版本与发布记录

@fluidware-it/env2doc 共发布 5 个版本,首次发布于 2023/11/19;过去 12 个月发布了 1 个版本。

版本发布日期距今
0.3.2latest2025/11/2111 个月前
0.3.12023/12/252 年前
0.3.02023/12/252 年前
0.2.02023/11/302 年前
0.1.02023/11/192 年前

关于 @fluidware-it/env2doc 的常见问题

@fluidware-it/env2doc 是什么?

Documentation generator for EnvParse usage

如何安装 @fluidware-it/env2doc?

在项目目录运行 npm install @fluidware-it/env2doc,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 env2doc,可以用 npx env2doc 直接运行。

@fluidware-it/env2doc 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/fluidware-it__env2doc 是否存在。

@fluidware-it/env2doc 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@fluidware-it/env2doc 可以商用吗?

@fluidware-it/env2doc 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fluidware-it/env2doc 的下载量有多少?

根据 npm 官方下载统计,@fluidware-it/env2doc 在 2026/10/15 – 2026/11/13 这 30 天内被下载 2,145 次,日均约 72 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fluidware-it/env2doc 还在维护吗?

最新版本 0.3.2 发布于 2025/11/21(11 个月前);至今共发布 5 个版本,其中过去 12 个月发布了 1 个;首次发布于 2023/11/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。