{"_id":"@canis22788/git-czx","_rev":"5-5de31ed05dec7a54343e427de3afb326","name":"@canis22788/git-czx","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@canis22788/git-czx","version":"0.1.0","keywords":["git","commit","commitizen","conventional-commits","emoji","cli"],"author":{"url":"https://iistw.com","name":"Canis Zhang","email":"iistw22788@gmail.com"},"license":"MIT","_id":"@canis22788/git-czx@0.1.0","maintainers":[{"name":"canis22788","email":"josh22788@gmail.com"}],"bin":{"czx":"dist/cli.js","git-czx":"dist/cli.js"},"dist":{"shasum":"0c9b744cfacf6166df365910c449344b8f836e4e","tarball":"https://registry.npmjs.org/@canis22788/git-czx/-/git-czx-0.1.0.tgz","fileCount":6,"integrity":"sha512-Ywxz5BEDvhVjA9fU51GJkODvDeRmfV97VHXD3I8G7XSD1wzdC2tWUSSt6ZwY0Y9fyEEYtUee95k5IdCshvQOEA==","signatures":[{"sig":"MEUCIC7MlSk4f8CkLOAmRHVOn+mK7RCQ7HgxfH58WU8AuXJ2AiEA16pB3jsxamzQAzSpc9tH6a5FzvBrmaSCpEqdc2lSSag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31578},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"9775bd0d93f9cd7f979fad8df491e9d3c6f7181c","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"canis22788","email":"josh22788@gmail.com"},"_npmVersion":"11.7.0","description":"git-cz style commit tool with multi-line body via editor, cross-platform, strict locales","directories":{},"_nodeVersion":"22.14.0","dependencies":{"execa":"^9.5.2","@inquirer/prompts":"^7.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.3","@types/node":"^22.10.10"},"_npmOperationalInternal":{"tmp":"tmp/git-czx_0.1.0_1767307513695_0.3050230899389086","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@canis22788/git-czx","version":"0.1.1","keywords":["git","commit","commitizen","conventional-commits","emoji","cli"],"author":{"url":"https://iistw.com","name":"Canis Zhang","email":"iistw22788@gmail.com"},"license":"MIT","_id":"@canis22788/git-czx@0.1.1","maintainers":[{"name":"canis22788","email":"josh22788@gmail.com"}],"bin":{"czx":"dist/cli.js","git-czx":"dist/cli.js"},"dist":{"shasum":"4b3ea1e126fa2b08d545933580c0add76ee9a78e","tarball":"https://registry.npmjs.org/@canis22788/git-czx/-/git-czx-0.1.1.tgz","fileCount":6,"integrity":"sha512-OOhOYRLlu7fK1J1Wi2PmbDW7WnngmHJs3pqoX6oEZcUQq0hEAepIZ1HBYCjqN1cJIkF39OCaUpFuB4cWSLxzrg==","signatures":[{"sig":"MEUCIQD57l5tKZYWgta+CMSeVwwf6CSuv5RMldYbw3IDk4PiKAIgR2g4r19ye+92bJVB4SqJXWT5wLBCFQWxUIwYDIbpzSc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32333},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"52e0a55c809387b4837741f677d4d67c46a17716","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"canis22788","email":"josh22788@gmail.com"},"_npmVersion":"11.7.0","description":"git-cz style commit tool with multi-line body via editor, cross-platform, strict locales","directories":{},"_nodeVersion":"22.14.0","dependencies":{"execa":"^9.5.2","@inquirer/prompts":"^7.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.3","@types/node":"^22.10.10"},"_npmOperationalInternal":{"tmp":"tmp/git-czx_0.1.1_1767308599810_0.37974654306919264","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@canis22788/git-czx","version":"0.1.2","keywords":["git","commit","commitizen","conventional-commits","emoji","cli"],"author":{"url":"https://iistw.com","name":"Canis Zhang","email":"iistw22788@gmail.com"},"license":"MIT","_id":"@canis22788/git-czx@0.1.2","maintainers":[{"name":"canis22788","email":"josh22788@gmail.com"}],"homepage":"https://github.com/Canis-Infinity/git-czx#readme","bugs":{"url":"https://github.com/Canis-Infinity/git-czx/issues"},"bin":{"czx":"dist/cli.js","git-czx":"dist/cli.js"},"dist":{"shasum":"b6f881cb43b7757bd0dd08b56fef2ae98d0d3156","tarball":"https://registry.npmjs.org/@canis22788/git-czx/-/git-czx-0.1.2.tgz","fileCount":6,"integrity":"sha512-s11TSru91uFyh9VHf1HIXwLfj8BEoPj304SdgNJKmEVLoqt4vKusn/pRR9gB+EtSQUtwHY2nTJjblLdld9IILg==","signatures":[{"sig":"MEUCIEU6pHVPszaMUF1J9J6NvF8bZVDO2Pjz2LGLJaTmGF/7AiEA6PJFTzLxap0FvOJeb99SNEHbHzl92oVQbWkR9F4VfTY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34666},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"1bba8a820c246fa0cc8eff5c6bce357f52a364de","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"canis22788","email":"josh22788@gmail.com"},"repository":{"url":"git+https://github.com/Canis-Infinity/git-czx.git","type":"git"},"_npmVersion":"11.7.0","description":"git-cz style commit tool with multi-line body via editor, cross-platform, strict locales","directories":{},"_nodeVersion":"22.14.0","dependencies":{"execa":"^9.5.2","@inquirer/prompts":"^7.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.3","@types/node":"^22.10.10"},"_npmOperationalInternal":{"tmp":"tmp/git-czx_0.1.2_1767375305180_0.9378121978170222","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@canis22788/git-czx","version":"0.1.3","keywords":["git","commit","commitizen","conventional-commits","emoji","cli"],"author":{"url":"https://iistw.com","name":"Canis Zhang","email":"iistw22788@gmail.com"},"license":"MIT","_id":"@canis22788/git-czx@0.1.3","maintainers":[{"name":"canis22788","email":"josh22788@gmail.com"}],"homepage":"https://github.com/Canis-Infinity/git-czx#readme","bugs":{"url":"https://github.com/Canis-Infinity/git-czx/issues"},"bin":{"czx":"dist/cli.js","git-czx":"dist/cli.js"},"dist":{"shasum":"c7198b3e99303238403347c49ee04f0fe8a27bfa","tarball":"https://registry.npmjs.org/@canis22788/git-czx/-/git-czx-0.1.3.tgz","fileCount":6,"integrity":"sha512-MYVKLnS8pXJV7HqcgaTvrfZNVeW3/6G/QVdN/u2r4SpOHnPebDAZDFkq2XXc15vvOmHGQPCW1CD7xXp+Fiod/Q==","signatures":[{"sig":"MEQCIFJem/q5KLABTYG+YVH8fj+38Mg5G/8wSk8SEnFn9RYGAiBTAwTBIXmdZ1aEw5Ee8txDdlb5V4CGW9DAVY0odi8MRw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34681},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"caa720fa8d5c526f8a50e60666b097ee7b6e518f","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"canis22788","email":"josh22788@gmail.com"},"repository":{"url":"git+https://github.com/Canis-Infinity/git-czx.git","type":"git"},"_npmVersion":"11.7.0","description":"git-cz style commit tool with multi-line body via editor, cross-platform, strict locales","directories":{},"_nodeVersion":"22.14.0","dependencies":{"execa":"^9.5.2","@inquirer/prompts":"^7.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"^5.7.3","@types/node":"^22.10.10"},"_npmOperationalInternal":{"tmp":"tmp/git-czx_0.1.3_1776749660349_0.9590939418461486","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@canis22788/git-czx","version":"0.2.0","description":"git-cz style commit tool with multi-line body via editor, cross-platform, strict locales","license":"MIT","author":{"name":"Canis Zhang","email":"iistw22788@gmail.com","url":"https://iistw.com"},"repository":{"type":"git","url":"git+https://github.com/Canis-Infinity/git-czx.git"},"homepage":"https://github.com/Canis-Infinity/git-czx#readme","bugs":{"url":"https://github.com/Canis-Infinity/git-czx/issues"},"type":"module","bin":{"czx":"dist/cli.js","git-czx":"dist/cli.js"},"keywords":["git","commit","commitizen","conventional-commits","emoji","cli"],"engines":{"node":">=18.0.0"},"scripts":{"build":"tsup","prepublishOnly":"npm run build"},"dependencies":{"@inquirer/prompts":"^7.2.1","execa":"^9.5.2"},"devDependencies":{"@types/node":"^22.10.10","tsup":"^8.3.5","typescript":"^5.7.3"},"gitHead":"f13eaff8e1af168d208a78ab65d1f43eafe1cea8","_id":"@canis22788/git-czx@0.2.0","_nodeVersion":"22.14.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-kmndPJSGQOtqS8qru0jf1m1MagTinPRzTIhw8sLBpWEKILU+9KhOnbPAPFH6M7rStL+MlyDtfkC+sF+ndCB7fA==","shasum":"9866dec765e63c5794be83aa2308ae4ca8d3152a","tarball":"https://registry.npmjs.org/@canis22788/git-czx/-/git-czx-0.2.0.tgz","fileCount":7,"unpackedSize":39601,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCe+QVG0YyfSnBnU+q5YnxrSRNU0h35mxRVKP68f1kJuwIgTpKVlzI8Uj9Zs5gW5AB1ufHLZcwhWIrC1jg3QRxpUss="}]},"_npmUser":{"name":"canis22788","email":"josh22788@gmail.com"},"directories":{},"maintainers":[{"name":"canis22788","email":"josh22788@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-czx_0.2.0_1783842668050_0.7022751571595813"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-01T22:45:13.589Z","modified":"2026-07-12T07:51:08.294Z","0.1.0":"2026-01-01T22:45:13.865Z","0.1.1":"2026-01-01T23:03:20.000Z","0.1.2":"2026-01-02T17:35:05.334Z","0.1.3":"2026-04-21T05:34:20.483Z","0.2.0":"2026-07-12T07:51:08.187Z"},"bugs":{"url":"https://github.com/Canis-Infinity/git-czx/issues"},"author":{"name":"Canis Zhang","email":"iistw22788@gmail.com","url":"https://iistw.com"},"license":"MIT","homepage":"https://github.com/Canis-Infinity/git-czx#readme","keywords":["git","commit","commitizen","conventional-commits","emoji","cli"],"repository":{"type":"git","url":"git+https://github.com/Canis-Infinity/git-czx.git"},"description":"git-cz style commit tool with multi-line body via editor, cross-platform, strict locales","maintainers":[{"name":"canis22788","email":"josh22788@gmail.com"}],"readme":"# @canis22788/git-czx\r\n\r\n[![npm version](https://img.shields.io/npm/v/@canis22788/git-czx?style=flat-square)](https://www.npmjs.com/package/@canis22788/git-czx)\r\n[![npm downloads](https://img.shields.io/npm/dm/@canis22788/git-czx?style=flat-square)](https://www.npmjs.com/package/@canis22788/git-czx)\r\n[![node](https://img.shields.io/node/v/@canis22788/git-czx?style=flat-square)](https://www.npmjs.com/package/@canis22788/git-czx)\r\n[![license](https://img.shields.io/npm/l/@canis22788/git-czx?style=flat-square)](https://github.com/Canis-Infinity/git-czx/blob/main/LICENSE)\r\n[![GitHub stars](https://img.shields.io/github/stars/Canis-Infinity/git-czx?style=flat-square)](https://github.com/Canis-Infinity/git-czx)\r\n\r\n一個互動式的 git commit 工具，支援 **多行 Commit Body**、**Emoji**，並提供 **繁體中文 / 简体中文 / English** 三種語系。\r\n\r\n📘 其他語言：\r\n- [English](./README.md)\r\n- [简体中文](./README.zh-CN.md)\r\n\r\n---\r\n\r\n## 安裝\r\n\r\n```bash\r\nnpm install -g @canis22788/git-czx\r\n````\r\n\r\n安裝完成後，會有兩個指令可用（功能完全相同）：\r\n\r\n```bash\r\nczx\r\ngit-czx\r\n```\r\n\r\n---\r\n\r\n## 快速開始\r\n\r\n在 **git 專案目錄** 裡執行：\r\n\r\n```bash\r\nczx\r\n```\r\n\r\n或：\r\n\r\n```bash\r\ngit-czx\r\n```\r\n\r\n照著提示操作即可完成一次 commit。\r\n\r\n---\r\n\r\n## Commit 流程\r\n\r\n1. 選擇 Commit 類型（feat / fix / docs / …）\r\n2. 輸入 scope（可選）\r\n3. 輸入 subject（最長 50 字）\r\n4. 選擇 Issue 關聯方式（Refs / Closes / Fixes）\r\n5. 是否包含 BREAKING CHANGE\r\n6. **選擇是否要打開編輯器來編輯完整的 Commit Message**\r\n\r\n### 編輯器行為說明\r\n\r\n* **選擇打開編輯器**：\r\n\r\n  * 會開啟編輯器並載入 Commit Message 模板\r\n  * 可撰寫 **多行 Body、Footer、BREAKING CHANGE**\r\n  * 儲存並關閉後完成 commit\r\n\r\n* **選擇不打開編輯器**：\n\n  * 直接使用你剛剛回答的內容建立 commit\n  * 若有填 Footer 或 BREAKING CHANGE，也會保留\n  * 不會開啟編輯器\n  * 即使沒有額外修改內容，commit 也會成功\n\r\n這個設計可避免「編輯器沒改內容就關掉，Git 直接 abort commit」的老問題。\r\n\r\n---\r\n\r\n## 為什麼用 git-czx\r\n\r\n* 📝 支援多行 Commit Body（可選是否開啟編輯器）\r\n* 🎯 遵循 Conventional Commits 規範\r\n* 🎸 內建 Emoji 支援\r\n* 🌍 三種語系：zh-TW / zh-CN / en-US\r\n* 🔒 不魔改 git 行為（完整支援 git commit 參數透傳）\r\n\r\n---\r\n\r\n## 語系設定\n\n### 手動覆蓋\n\n```bash\nczx --lang zh-TW\nczx --lang zh-CN\nczx --lang en-US\n```\n\n### 專案設定檔\n\n可以像 Prettier 一樣，在專案根目錄放設定檔：\n\n```json\n{\n  \"lang\": \"zh-TW\"\n}\n```\n\n支援的設定檔名稱：\n\n```text\n.gitczxrc\n.gitczxrc.json\ngit-czx.config.json\n```\n\n設定鍵支援 `lang` 或 `locale`。\n\n也可以寫在 `package.json`：\n\n```json\n{\n  \"git-czx\": {\n    \"lang\": \"zh-TW\"\n  }\n}\n```\n\n設定檔會從目前執行目錄開始找，並一路往父層目錄查找。\n\n### 解析順序\n\n1. `--lang`\n2. 專案設定檔\n3. `CZ_LANG`\n4. `LC_ALL`\n5. `LC_MESSAGES`\n6. `LANG`\n\n若皆未符合，預設使用 `zh-TW`。\n\r\n---\r\n\r\n## 支援的 Commit 類型\r\n\r\n* 🎸 feat：新功能\r\n* 🐛 fix：修 bug\r\n* ✏️ docs：文件\r\n* 💄 style：格式調整（不影響邏輯）\r\n* 💡 refactor：重構\r\n* ⚡️ perf：效能優化\r\n* 💍 test：測試\r\n* 🤖 chore：工具 / 雜項\r\n* 🎡 ci：CI / CD\r\n* 🏹 release：發版\r\n\r\n---\r\n\r\n## 常用選項\r\n\r\n### 僅預覽（不真的 commit）\r\n\r\n```bash\r\nczx --dry-run\r\n```\r\n\r\n### 停用自動 git add\r\n\r\n```bash\r\nczx --no-add\r\n```\r\n\r\n### 透傳 git commit 參數\r\n\r\n```bash\r\nczx -- --no-verify\r\nczx -- -S\r\nczx -- --signoff\r\n```\r\n\r\n---\r\n\r\n## Commit 範例（使用編輯器）\r\n\r\n```text\r\nfeat(blog): 🎸 新增 Markdown 圖片放大\r\n\r\n# Body\r\n- 支援 figure caption\r\n- 加入 medium-zoom\r\n\r\nRefs: #123\r\n```\r\n\r\n## Commit 範例（不開編輯器）\r\n\r\n```text\r\nfix(deps): 🐛 套件名稱修正\r\n```\r\n\r\n---\r\n\r\n## 授權\r\n\r\nMIT\r\n\r\n---\r\n\r\n## 作者\r\n\r\nCanis Zhang\r\n[https://iistw.com](https://iistw.com)\n","readmeFilename":"README.zh-TW.md"}