重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
prettier-compare by biomejs/biome
npx skills add https://github.com/biomejs/biome --skill prettier-compare使用 packages/prettier-compare/ 在发布格式化程序更改之前,检查 Biome 与 Prettier 格式化(包括 IR 输出)之间的任何差异。
bun(CLI 是一个 Bun 脚本)并确保依赖项已安装。--rebuild 参数,以确保 Biome WASM 包与您当前的 Rust 更改匹配。将代码片段作为 CLI 参数传递:
bun packages/prettier-compare/bin/prettier-compare.js --rebuild 'const x={a:1,b:2}'
强制指定语言(当工具无法从文件名推断时很有用):
bun packages/prettier-compare/bin/prettier-compare.js --rebuild -l ts 'const x: number = 1'
比较磁盘上的文件:
bun packages/prettier-compare/bin/prettier-compare.js --rebuild -f src/example.tsx
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
从标准输入读取(非常适合管道传输编辑器选中的内容):
echo 'const x = 1' | bun packages/prettier-compare/bin/prettier-compare.js --rebuild -l js
-l/--language,以便两个格式化程序都能选择正确的解析器。-f/--file,以便您可以直接在项目夹具上迭代。packages/prettier-compare/README.md 以获取更详细的 CLI 细节;在此处镜像任何更新,并保持硬性要求,即命令必须包含 --rebuild。每周安装量
44
仓库
GitHub 星标数
24.0K
首次出现
2026年2月18日
安全审计
安装于
opencode44
github-copilot44
codex44
kimi-cli44
gemini-cli44
amp44
Use packages/prettier-compare/ to inspect any differences between Biome and Prettier formatting (including IR output) before shipping formatter changes.
bun (the CLI is a Bun script) and ensure dependencies have been installed.--rebuild so the Biome WASM bundle matches your current Rust changes.Snippets passed as CLI args:
bun packages/prettier-compare/bin/prettier-compare.js --rebuild 'const x={a:1,b:2}'
Force a language (useful when the tool cannot infer it from a filename):
bun packages/prettier-compare/bin/prettier-compare.js --rebuild -l ts 'const x: number = 1'
Compare files on disk:
bun packages/prettier-compare/bin/prettier-compare.js --rebuild -f src/example.tsx
Read from stdin (great for piping editor selections):
echo 'const x = 1' | bun packages/prettier-compare/bin/prettier-compare.js --rebuild -l js
-l/--language when formatting code without an extension so both formatters pick the correct parser.-f/--file for large samples or snapshot tests so you can iterate directly on project fixtures.packages/prettier-compare/README.md for deeper CLI details; mirror any updates here, keeping the hard requirement that commands include --rebuild.Weekly Installs
44
Repository
GitHub Stars
24.0K
First Seen
Feb 18, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode44
github-copilot44
codex44
kimi-cli44
gemini-cli44
amp44
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
125,600 周安装