Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions pages/common/npm-hook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# npm hook

> Manage `npm` registry hooks for packages.
> Note: This command has been deprecated.
> More information: <https://docs.npmjs.com/cli/v10/hook>.

- List all active hooks:

`npm hook ls`

- Add a new hook for a package:

`npm hook add {{package_name}} {{event}} {{target_url}}`

- Remove a specific hook by its ID:

`npm hook rm {{hook_id}}`

- Update a hook with new information:

`npm hook update {{hook_id}} {{target_url}}`