mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 06:00:35 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/npm-hook
Normal file
26
tldr/npm-hook
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user