{"_id":"@chengyixu/claudehook","_rev":"2-d2d8fa97e9affc2398e32d317f1af70a","name":"@chengyixu/claudehook","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@chengyixu/claudehook","version":"1.0.0","keywords":["claude-code","hooks","automation","cli","developer-tools","anthropic","ai","code-generation","settings","configuration"],"author":{"name":"chengyixu"},"license":"MIT","_id":"@chengyixu/claudehook@1.0.0","maintainers":[{"name":"chengyixu","email":"Chengyi_xu@outlook.com"}],"homepage":"https://github.com/chengyixu/claudehook#readme","bugs":{"url":"https://github.com/chengyixu/claudehook/issues"},"bin":{"claudehook":"index.js"},"dist":{"shasum":"5a6b5302577ba11185a66ccd42ac0ec9d4495de3","tarball":"https://registry.npmjs.org/@chengyixu/claudehook/-/claudehook-1.0.0.tgz","fileCount":3,"integrity":"sha512-zkVF+Wn4ESX4TtjlDe+iu0IV//gze+0/Leu+SEghOEDrkMLMwYKEbClhkYJlFtlZ5jzM+fZFxnkkrl3iZybH5A==","signatures":[{"sig":"MEQCIFCZ7DM/mNatI6eizammMevLs/pD2gHzvf7xR7Mu42RhAiBe0maFZkg0Yw7CFZWZ85OpIy3Ymvu7CCdAqqqF1pcXKQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21081},"main":"index.js","engines":{"node":">=16"},"gitHead":"1d950af1be837c83081f8fb988667cc8aa5b96e0","scripts":{"test":"node index.js --help"},"_npmUser":{"name":"chengyixu","email":"Chengyi_xu@outlook.com"},"repository":{"url":"git+https://github.com/chengyixu/claudehook.git","type":"git"},"_npmVersion":"10.9.8","description":"Generate Claude Code hook configurations from natural language descriptions","directories":{},"_nodeVersion":"25.8.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/claudehook_1.0.0_1778064157616_0.3640578173244402","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@chengyixu/claudehook","version":"1.0.1","description":"Generate Claude Code hook configurations from natural language descriptions","main":"index.js","bin":{"claudehook":"index.js"},"scripts":{"test":"node index.js --help"},"keywords":["claude-code","hooks","automation","cli","developer-tools","anthropic","ai","code-generation","settings","configuration"],"author":{"name":"chengyixu"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/chengyixu/claudehook.git"},"engines":{"node":">=16"},"_id":"@chengyixu/claudehook@1.0.1","gitHead":"1d950af1be837c83081f8fb988667cc8aa5b96e0","bugs":{"url":"https://github.com/chengyixu/claudehook/issues"},"homepage":"https://github.com/chengyixu/claudehook#readme","_nodeVersion":"25.8.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-taSFryNxIfgE3R57R7LNu2MMxadgZ4FjIrfSLPAXnLhUDmkjyDszzSm3Oh+lBNCVIVrtHnlMtU/6g756aoeHqg==","shasum":"7f2a49a41785cfa7f3c12c67e5a9da93b1fd0baf","tarball":"https://registry.npmjs.org/@chengyixu/claudehook/-/claudehook-1.0.1.tgz","fileCount":3,"unpackedSize":21081,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDimRBvzSBvuZm4Ul7ZWdiWw+fak5XsXo3BxXjNIqoDrQIhAN2Ll5BoAT3pKtxR6DWcRB+FlW/flQY+GiI39ZPjUtIM"}]},"_npmUser":{"name":"chengyixu","email":"Chengyi_xu@outlook.com"},"directories":{},"maintainers":[{"name":"chengyixu","email":"Chengyi_xu@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/claudehook_1.0.1_1778064320476_0.025854422310185088"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-06T10:42:37.514Z","modified":"2026-05-06T10:45:20.726Z","1.0.0":"2026-05-06T10:42:37.770Z","1.0.1":"2026-05-06T10:45:20.626Z"},"bugs":{"url":"https://github.com/chengyixu/claudehook/issues"},"author":{"name":"chengyixu"},"license":"MIT","homepage":"https://github.com/chengyixu/claudehook#readme","keywords":["claude-code","hooks","automation","cli","developer-tools","anthropic","ai","code-generation","settings","configuration"],"repository":{"type":"git","url":"git+https://github.com/chengyixu/claudehook.git"},"description":"Generate Claude Code hook configurations from natural language descriptions","maintainers":[{"name":"chengyixu","email":"Chengyi_xu@outlook.com"}],"readme":"# claudehook\n\nGenerate [Claude Code](https://claude.ai/code) hook configurations from natural language descriptions.\n\nNo more reading hook docs. Just describe what you want in plain English, and claudehook generates the correct JSON configuration.\n\n## Install\n\n```bash\nnpm install -g claudehook\n```\n\n## Usage\n\n```bash\n# Run tests before every git commit\nclaudehook \"before every git commit, run npm test\"\n\n# Format files automatically after editing\nclaudehook \"format files with prettier after editing\"\n\n# Get a desktop notification when a session ends\nclaudehook \"send a desktop notification when a session ends\"\n\n# Block dangerous commands\nclaudehook \"prevent rm -rf commands from running\"\n\n# Load environment on session start\nclaudehook \"load .env on session start\"\n\n# Apply directly to your project's settings\nclaudehook --apply \"before every git commit, run npm test\"\n```\n\n## Options\n\n| Option | Alias | Description |\n|--------|-------|-------------|\n| `--apply` | `-a` | Write directly to `.claude/settings.json` |\n| `--output <file>` | `-o` | Write to a specific file |\n| `--dry-run` | `-n` | Show what would be added without writing |\n| `--list` | `-l` | List all hook types |\n| `--info` | `-i` | Show hook reference guide |\n| `--help` | `-h` | Show help |\n\n## Supported Hook Types\n\n| Hook Type | Description | Example Prompt |\n|-----------|-------------|----------------|\n| **PreToolUse** | Runs BEFORE a matched tool | \"before every git commit, run npm test\" |\n| **PostToolUse** | Runs AFTER a matched tool | \"format files with prettier after editing\" |\n| **Notification** | Runs on notification events | \"alert me when idle\" |\n| **Stop** | Runs when session stops | \"save context when session ends\" |\n| **SessionStart** | Runs when session starts | \"load .env on session start\" |\n\n## Examples\n\n```bash\n# Before npm install, check for vulnerabilities\nclaudehook \"before npm install, run npm audit\"\n\n# After writing files, auto-format\nclaudehook \"after editing files, run prettier --write .\"\n\n# On session end, log it\nclaudehook \"when session ends, log to session.log\"\n\n# Notification on idle\nclaudehook \"show desktop notification when idle\"\n\n# Block dangerous git operations\nclaudehook \"prevent git push --force from running\"\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}