Skip to content

Commit ef60888

Browse files
Ahamed1846dmmqzacuteenvy
authored
npm-hook: add page (#19025)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Lena Pastwa <[email protected]>
1 parent 8c5180c commit ef60888

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pages/common/npm-hook.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# npm hook
2+
3+
> Manage `npm` registry hooks for packages.
4+
> Note: This command has been deprecated.
5+
> More information: <https://docs.npmjs.com/cli/v10/hook>.
6+
7+
- List all active hooks:
8+
9+
`npm hook ls`
10+
11+
- Add a new hook for a package:
12+
13+
`npm hook add {{package_name}} {{event}} {{target_url}}`
14+
15+
- Remove a specific hook by its ID:
16+
17+
`npm hook rm {{hook_id}}`
18+
19+
- Update a hook with new information:
20+
21+
`npm hook update {{hook_id}} {{target_url}}`

0 commit comments

Comments
 (0)