{"_id":"@cerebralatlas/koi-fish","_rev":"2-d26aa48cfa3b4fa82ffcb80c7933542c","name":"@cerebralatlas/koi-fish","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@cerebralatlas/koi-fish","version":"1.0.0","keywords":["cli","木鱼","electronic","merit","功德","terminal","sound"],"author":{"name":"Luke"},"license":"MIT","_id":"@cerebralatlas/koi-fish@1.0.0","maintainers":[{"name":"cerebralatlas","email":"cerebralatlas@gmail.com"}],"homepage":"https://github.com/cerebralatlas/koi-fish#readme","bugs":{"url":"https://github.com/cerebralatlas/koi-fish/issues"},"bin":{"koi-fish":"bin/koi-fish.js"},"dist":{"shasum":"67fd1224763684572751db866523ba7b8d662be2","tarball":"https://registry.npmjs.org/@cerebralatlas/koi-fish/-/koi-fish-1.0.0.tgz","fileCount":7,"integrity":"sha512-WzVwRrmN4lkCwBKl5KNR6csWt2iFrfgU/BCSOU+J4ceXT5AgPrKakPq04LNzCIEGSfL1FDwWxwIv5qB2GI5pSg==","signatures":[{"sig":"MEUCIAPuUQEnsGjhacJVRk1DpiMnxXCK4TZGpx2pWroHYHWYAiEA2ClyMuUhsqhryb7hi8eWyeOrqe+dnrSBhNUVs1RWCik=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11885},"main":"index.js","type":"module","engines":{"node":">=14.0.0"},"gitHead":"e22ee40dcb5e99d067f57cb1f4a363f01c341ec1","scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node bin/koi-fish.js"},"_npmUser":{"name":"cerebralatlas","email":"cerebralatlas@gmail.com"},"repository":{"url":"git+https://github.com/cerebralatlas/koi-fish.git","type":"git"},"_npmVersion":"10.9.3","description":"CLI版电子木鱼 - 敲击空格播放木鱼声并累计功德","directories":{},"_nodeVersion":"22.18.0","dependencies":{"chalk":"^4.1.2","figlet":"^1.7.0","keypress":"^0.2.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/koi-fish_1.0.0_1755592592267_0.831743730217134","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cerebralatlas/koi-fish","version":"1.0.1","description":"CLI版电子木鱼 - 敲击空格播放木鱼声并累计功德","type":"module","main":"index.js","bin":{"koi-fish":"bin/koi-fish.js"},"scripts":{"start":"node bin/koi-fish.js","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["cli","木鱼","electronic","merit","功德","terminal","sound"],"author":{"name":"Luke"},"license":"MIT","dependencies":{"keypress":"^0.2.1","chalk":"^4.1.2","figlet":"^1.7.0"},"engines":{"node":">=14.0.0"},"repository":{"type":"git","url":"git+https://github.com/cerebralatlas/koi-fish.git"},"_id":"@cerebralatlas/koi-fish@1.0.1","gitHead":"bec2e2011c5e20a1758cde0e975c27d6be3b9902","bugs":{"url":"https://github.com/cerebralatlas/koi-fish/issues"},"homepage":"https://github.com/cerebralatlas/koi-fish#readme","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-XYi0wOmqJP1UFsqK+5yynovgAdyNkRD+VkT1sYvbM1jhunuIP1qu/amxW6f9qU6dGlt6XeOsR0DX2ZIlFsOXbw==","shasum":"4f139153c2f7ef98c849aa28a7eee0ff8bc6027d","tarball":"https://registry.npmjs.org/@cerebralatlas/koi-fish/-/koi-fish-1.0.1.tgz","fileCount":7,"unpackedSize":12654,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBQQnpqCNqTfVE5PlLK3uDb/jjHuQ45WRvKtsRyo4TdxAiBNAJKp32mK5kP6F4yy0ZWyBgl8h00xHqnqyeyUKMv9PQ=="}]},"_npmUser":{"name":"cerebralatlas","email":"cerebralatlas@gmail.com"},"directories":{},"maintainers":[{"name":"cerebralatlas","email":"cerebralatlas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/koi-fish_1.0.1_1755594833980_0.5524266950337153"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-19T08:36:32.189Z","modified":"2025-08-19T09:13:54.356Z","1.0.0":"2025-08-19T08:36:32.462Z","1.0.1":"2025-08-19T09:13:54.173Z"},"bugs":{"url":"https://github.com/cerebralatlas/koi-fish/issues"},"author":{"name":"Luke"},"license":"MIT","homepage":"https://github.com/cerebralatlas/koi-fish#readme","keywords":["cli","木鱼","electronic","merit","功德","terminal","sound"],"repository":{"type":"git","url":"git+https://github.com/cerebralatlas/koi-fish.git"},"description":"CLI版电子木鱼 - 敲击空格播放木鱼声并累计功德","maintainers":[{"name":"cerebralatlas","email":"cerebralatlas@gmail.com"}],"readme":"# 🐟 Koi Fish - CLI版电子木鱼\n\n一个简单有趣的CLI工具，让你在终端中体验电子木鱼的乐趣！\n\n## ✨ 功能特色\n\n- 🔔 **真实音效**: 按空格键播放木鱼音效\n- 📿 **功德累计**: 每次敲击功德+1，数据持久化保存\n- 🏮 **等级系统**: 根据功德值获得不同的修行等级\n- 💫 **随机佛语**: 每次敲击显示随机佛语\n- 🌸 **美观界面**: 彩色终端界面，赏心悦目\n- 💾 **数据保存**: 功德记录自动保存到本地\n\n## 📦 安装\n\n### 全局安装\n```bash\nnpm i @cerebralatlas/koi-fish -g\n```\n\n### 本地开发\n```bash\ngit clone <repository-url>\ncd koi-fish\nnpm install\nnpm start\n```\n\n## 🎮 使用方法\n\n### 启动电子木鱼\n```bash\nkoi-fish\n```\n\n### 操作说明\n- **空格键**: 敲击木鱼，播放音效并增加功德\n- **q 键**: 退出程序\n- **Ctrl+C**: 强制退出\n\n## 🏮 功德等级系统\n\n| 功德值 | 等级 | 图标 |\n|--------|------|------|\n| 0-99   | 新手 | 🌿 |\n| 100-499| 初学 | 🌾 |\n| 500-999| 信徒 | 🌱 |\n| 1000-1999| 弟子 | 🌸 |\n| 2000-4999| 居士 | 🍃 |\n| 5000-9999| 罗汉 | 🎋 |\n| 10000+ | 菩萨 | 🏮 |\n\n## 🔊 音频支持\n\n程序支持多种音频播放方式：\n1. **WAV文件播放**: 将木鱼音效文件放置在 `assets/wooden-fish.wav`\n2. **合成音效**: 自动生成beep音效\n3. **终端提示音**: 系统beep声\n4. **视觉提示**: 当音频不可用时使用emoji提示\n\n## 📁 文件结构\n\n```\nkoi-fish/\n├── bin/\n│   └── koi-fish.js     # CLI入口文件\n├── src/\n│   ├── koi-fish.js     # 主程序逻辑\n│   ├── sound-player.js # 音频播放模块\n│   └── merit-counter.js # 功德计数模块\n├── assets/\n│   └── wooden-fish.wav # 木鱼音效文件(可选)\n├── package.json\n├── index.js\n└── README.md\n```\n\n## 🛠️ 技术栈\n\n- **ES Modules**: 使用现代JavaScript模块系统\n- `keypress`: 监听键盘输入\n- `chalk`: 终端彩色输出\n- `figlet`: ASCII艺术字\n- **Node.js**: 要求 v14.0.0+（支持ES Modules）\n\n## 💡 开发说明\n\n### 本地测试\n```bash\nnpm start\n```\n\n### 全局链接(开发时)\n```bash\nnpm link\nkoi-fish\n```\n\n### 取消全局链接\n```bash\nnpm unlink -g koi-fish\n```\n\n## 🤝 贡献\n\n欢迎提交Issue和Pull Request！\n\n## 📄 许可证\n\nMIT License\n\n## 🙏 致谢\n\n感恩所有使用者，愿大家功德圆满！\n\n---\n\n**愿你每一次敲击都能带来内心的平静** 🧘‍♀️\n","readmeFilename":"README.md"}