Bundle
dsh-text-mask
文本脱敏:把文本中的邮箱/手机号/身份证/银行卡/IP/密钥等敏感信息替换为掩码,分享前保护隐私
- Source
- uckkk
- License
- MIT
- Updated
- Updated 3 days ago
Readme
# dsh-text-mask · 文本脱敏 把文本中的敏感信息(邮箱、手机号、身份证号、银行卡号、IP、密钥/令牌)替换为掩码,返回脱敏文本与命中计数。纯 Node 实现,无网络、无外部服务。 ## 提供的工具 | 工具 | 作用 | |---|---| | `mask_text` | 脱敏文本中的 PII 与密钥 | ## 安装 ```bash dsh plugin add dsh-text-mask ``` 安装后在 profile 的 `package.json` 的 `dsh.profile.bundles` 中加入 `"dsh-text-mask"`。 ## 用法示例 ``` 把这段日志里的敏感信息脱敏后再给我 → 调用 mask_text(text="...") ``` ## 安装 ```bash dsh plugin add github:uckkk/dsh-text-mask ``` > 安装即在本机运行第三方代码,请自行审阅源码。 ## 安装 ```bash dsh plugin add github:uckkk/dsh-text-mask ``` ## 使用 安装后在会话中调用该插件注册的工具即可。 ## 许可 MIT > 安装即在本机运行第三方代码,请自行审阅源码。
Install
dsh plugin --profile web add github:uckkk/dsh-text-mask
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-text-mask from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.