DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

uckkk /

uckkk/dsh-env-manager

Verified

环境变量管理:扫描代码引用与 .env 比对检测缺失/未使用,生成脱敏 .env.example

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@19d0e377

dsh-env-manager · 环境变量管理

扫描代码中引用的环境变量,与 .env 比对检测缺失/未使用;从 .env 生成脱敏的 .env.example。纯 Node 实现,无网络、无外部服务。

提供的工具

工具 作用
env_check 扫描代码引用的环境变量,与 .env 比对,返回「缺失」与「未使用」清单
env_example 从 .env 生成 .env.example(键保留、值脱敏)

安装

dsh plugin add dsh-env-manager

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-env-manager"。

用法示例

帮我检查这个项目有没有漏配置的环境变量
→ 调用 env_check(root="/workspace")

生成一份 .env.example
→ 调用 env_example(root="/workspace")

说明

  • 识别 process.env.X、process.env["X"]、import.meta.env.X、os.environ["X"]、os.getenv("X") 等常见写法。
  • 自动跳过 node_modules、.git、二进制/图片等文件。

安装

dsh plugin add github:uckkk/dsh-env-manager

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-env-manager

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。

—/ 5

No ratings yet

Verified DSH bundle

Commit 19d0e3776839

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout