Linux command
npm-hook 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List hooks
npm hook ls
Add hook
npm hook add [package] [url] [secret]
Remove hook
npm hook rm [id]
Update hook
npm hook update [id] [url] [secret]
说明
npm hook manages npm registry webhooks. Triggers on package events. The command configures notifications. Useful for CI/CD integration.
参数
- ls
- List hooks.
- add _PKG_ _URL_
- Add webhook.
- rm _ID_
- Remove hook.
- update _ID_
- Update hook.
- --help
- Display help information.
FAQ
What is the npm-hook command used for?
npm hook manages npm registry webhooks. Triggers on package events. The command configures notifications. Useful for CI/CD integration.
How do I run a basic npm-hook example?
Run `npm hook ls` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does ls do in npm-hook?
List hooks.