
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@wangxyu/feops
Advanced tools
前端运维工具集 - 基于 Node.js 实现的前端运维工具,主要用于批量管理和同步前端仓库。
npm install -g @wangxyu/feops
npm install
npm run build
首次使用需要初始化配置:
feops init
该命令会引导你完成以下配置:
配置文件将保存在 ~/.feops/config.json
# 克隆或更新所有配置的仓库
feops sync
# 预览模式,查看将要执行的操作
feops sync --dry-run
# 查看当前配置
feops config list
# 查看完整的 Token
feops config list --show-token
| 命令 | 说明 | 示例 |
|---|---|---|
init | 初始化配置 | feops init |
config | 配置管理 | feops config list |
sync | 同步仓库 | feops sync |
list | 列出仓库 | feops list |
branch | 查找分支 | feops branch main |
merged | 检查已合并 | feops merged feature/auth |
uptodate | 检查最新代码 | feops uptodate dev |
upgrade | 更新工具 | feops upgrade |
# 1. 全局安装
npm install -g @wangxyu/feops
# 2. 初始化配置
feops init
# 3. 克隆所有仓库
feops sync
# 4. 查看仓库列表
feops list
# 更新所有仓库到最新代码
feops sync
# 查看哪些项目有 feature/new-ui 分支
feops branch feature/new-ui --remote
# 1. 查找包含该分支的项目
feops branch feature/auth --remote
# 2. 检查是否已合并到 master
feops merged feature/auth
# 3. 检查是否包含最新 master 代码
feops uptodate feature/auth
# 1. 同步所有代码
feops sync
# 2. 检查功能分支是否已合并
feops merged feature/payment --base-branch release
# 3. 检查 release 是否包含最新 master
feops uptodate release
# 查看配置
feops config list
# 修改配置
feops config set gitlab.url http://your-gitlab.com
feops config set defaults.directory ../my-repos
feops config set defaults.branch main
# 添加 Group
feops config add-group dev51/fe-xh -d "前端仓库组"
# 移除 Group
feops config remove-group dev51/fe-xh
# 在编辑器中打开黑名单文件
feops config edit-blacklist
# 或直接编辑文件
vim ~/.feops/blacklist.txt
~/.feops/config.json~/.feops/blacklist.txt{
"gitlab": {
"url": "http://gitcode.example.com",
"token": "your-gitlab-token",
"groups": [
{
"path": "dev51/fe-xh",
"description": "前端仓库组"
}
]
},
"blacklist": [],
"defaults": {
"directory": "../fe-xh",
"branch": "master",
"parallel": 3
}
}
# 黑名单配置文件
# 以 # 开头的行为注释,会被忽略
# 每行一个仓库名称
fe-unwanted-repo1
fe-unwanted-repo2
fe-archived-project
read_api - 读取 APIread_repository - 读取仓库feops init 时使用feops/
├── src/
│ ├── index.ts # CLI 入口文件
│ ├── config/ # 配置管理
│ │ └── index.ts
│ ├── services/ # 服务层
│ │ └── gitlab.ts # GitLab API 服务
│ ├── commands/ # 命令实现
│ │ ├── init.ts # 初始化命令
│ │ ├── config.ts # 配置管理命令
│ │ ├── sync.ts # 同步仓库命令
│ │ ├── list.ts # 仓库列表命令
│ │ ├── branch.ts # 分支查找命令
│ │ ├── merged.ts # 合并检查命令
│ │ └── uptodate.ts # 最新代码检查命令
│ └── utils/ # 工具函数
│ ├── index.ts
│ └── progressBar.ts
├── dist/ # 编译输出
├── docs/ # 文档
│ ├── commands.md # 命令详细参考
│ └── quick-reference.md # 快速参考
├── package.json
├── tsconfig.json
└── README.md
npm install
npm run dev
npm run build
# 使用编译后的版本
node dist/index.js --help
# 或使用 npm link 全局链接
npm link
feops --help
feops 支持自动检查更新,每 24 小时检查一次。
# 检查是否有新版本
feops upgrade --check
# 直接更新到最新版本
feops upgrade
本项目采用单文档结构:本页即包含快速上手、快速参考以及完整命令参考。
feops 提供简洁明了的命令名称,每个命令都直接表达其功能。
| 命令 | 说明 | 示例 |
|---|---|---|
init | 初始化配置 | feops init |
config | 配置管理 | feops config list |
sync | 同步仓库 | feops sync |
list | 列出仓库 | feops list |
branch | 查找分支 | feops branch main |
merged | 检查已合并 | feops merged feature/auth |
uptodate | 检查最新代码 | feops uptodate dev |
upgrade | 更新工具 | feops upgrade |
交互式初始化配置向导,首次使用时必须运行。
feops init [options]
--force - 强制重新初始化,覆盖现有配置# 初始化配置
feops init
# 强制重新初始化
feops init --force
管理 feops 配置,包括查看、修改配置和管理 Group。
config list [--show-token]config set <key> <value>(支持 gitlab.url/gitlab.token/defaults.*)config get <key>config add-group <path> [-d desc]config remove-group <path>config edit-blacklist智能判断仓库状态,自动克隆新仓库或更新已存在的仓库。
feops sync [options]
-d, --directory <dir> 目标目录-b, --blacklist <repos...> 临时黑名单--dry-run 预览-p, --parallel <n> 并发数--git-url-base <url>、--branch <branch> 覆盖配置feops list [--filter <p>] [--visibility <t>] [--format <type>] [...]
feops branch <name> [--remote] [--no-fetch] [--format <type>] [-p <n>]
feops merged <branch> [--base-branch <branch>] [--show-missing] [--no-fetch] [--format <type>] [-p <n>]
feops uptodate <branch> [--base-branch <branch>] [--show-missing] [--no-fetch] [--format <type>] [-p <n>]
feops upgrade [--check]
提示:
upgrade用于更新工具本身;uptodate用于检查分支是否包含最新代码。
大部分命令支持三种输出格式:table(默认)、simple、json。
-p 5~10--no-fetch(刚执行过 sync、网络不稳定、仅看本地状态)feops merged ${BRANCH_NAME} --format json --no-fetch
feops list --format json | jq '...'
feops sync && feops merged feature/auth
feops branch feature/auth && feops merged feature/auth
feops --help
feops sync --help
feops branch --help
feops merged --help
feops uptodate --help
feops upgrade --help
详细的更新日志请查看 CHANGELOG.md
sync 命令:添加未提交更改检查功能sync 命令:跳过有未提交更改的仓库,并以表格形式展示sync 命令:优化结果展示,使用表格展示跳过的仓库信息sync 命令:修复分支切换时的错误处理ISC License
FAQs
前端运维工具集 - 基于 Node.js 实现的前端运维工具,支持 GitLab API 集成和自动更新
We found that @wangxyu/feops demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.