/home/techb158/.nvm/versions/node/v22.6.0/lib/node_modules/npm/man/man1
NameSizeModeActions
npm-access.140620644editdlrm
npm-adduser.119920644editdlrm
npm-audit.1173810644editdlrm
npm-bugs.133790644editdlrm
npm-cache.131320644editdlrm
npm-ci.1101810644editdlrm
npm-completion.19970644editdlrm
npm-config.146360644editdlrm
npm-dedupe.198620644editdlrm
npm-deprecate.118920644editdlrm
npm-diff.197710644editdlrm
npm-dist-tag.156360644editdlrm
npm-docs.133610644editdlrm
npm-doctor.153720644editdlrm
npm-edit.111800644editdlrm
npm-exec.1124910644editdlrm
npm-explain.129370644editdlrm
npm-explore.110890644editdlrm
npm-find-dupes.175900644editdlrm
npm-fund.140540644editdlrm
npm-help-search.18670644editdlrm
npm-help.110990644editdlrm
npm-hook.127080644editdlrm
npm-init.1111030644editdlrm
npm-install-ci-test.183200644editdlrm
npm-install-test.1111490644editdlrm
npm-install.1269640644editdlrm
npm-link.1129500644editdlrm
npm-login.123450644editdlrm
npm-logout.118870644editdlrm
npm-ls.194190644editdlrm
npm-org.123100644editdlrm
npm-outdated.163770644editdlrm
npm-owner.133630644editdlrm
npm-pack.138760644editdlrm
npm-ping.18490644editdlrm
npm-pkg.187040644editdlrm
npm-prefix.113170644editdlrm
npm-profile.134210644editdlrm
npm-prune.164570644editdlrm
npm-publish.183090644editdlrm
npm-query.176880644editdlrm
npm-rebuild.156640644editdlrm
npm-repo.131430644editdlrm
npm-restart.117090644editdlrm
npm-root.111940644editdlrm
npm-run-script.183770644editdlrm
npm-sbom.189960644editdlrm
npm-search.139520644editdlrm
npm-shrinkwrap.110040644editdlrm
npm-star.118070644editdlrm
npm-stars.17950644editdlrm
npm-start.118350644editdlrm
npm-stop.114660644editdlrm
npm-team.145030644editdlrm
npm-test.113790644editdlrm
npm-token.131860644editdlrm
npm-uninstall.149860644editdlrm
npm-unpublish.149000644editdlrm
npm-unstar.116580644editdlrm
npm-update.1132230644editdlrm
npm-version.177550644editdlrm
npm-view.161460644editdlrm
npm-whoami.18730644editdlrm
npm.159470644editdlrm
npx.164070644editdlrm
Edit: /home/techb158/.nvm/versions/node/v22.6.0/lib/node_modules/npm/man/man1/npm-hook.1 (2708B)
.TH "NPM-HOOK" "1" "July 2024" "NPM@10.8.2" "" .SH "NAME" \fBnpm-hook\fR - Manage registry hooks .SS "Synopsis" .P .RS 2 .nf npm hook add \[lB]--type=\[rB] npm hook ls \[lB]pkg\[rB] npm hook rm npm hook update .fi .RE .P Note: This command is unaware of workspaces. .SS "Description" .P Allows you to manage \fBnpm hooks\fR \fI\(lahttps://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm\(ra\fR, including adding, removing, listing, and updating. .P Hooks allow you to configure URL endpoints that will be notified whenever a change happens to any of the supported entity types. Three different types of entities can be watched by hooks: packages, owners, and scopes. .P To create a package hook, simply reference the package name. .P To create an owner hook, prefix the owner name with \fB~\fR (as in, \fB~youruser\fR). .P To create a scope hook, prefix the scope name with \fB@\fR (as in, \fB@yourscope\fR). .P The hook \fBid\fR used by \fBupdate\fR and \fBrm\fR are the IDs listed in \fBnpm hook ls\fR for that particular hook. .P The shared secret will be sent along to the URL endpoint so you can verify the request came from your own configured hook. .SS "Example" .P Add a hook to watch a package for changes: .P .RS 2 .nf $ npm hook add lodash https://example.com/ my-shared-secret .fi .RE .P Add a hook to watch packages belonging to the user \fBsubstack\fR: .P .RS 2 .nf $ npm hook add ~substack https://example.com/ my-shared-secret .fi .RE .P Add a hook to watch packages in the scope \fB@npm\fR .P .RS 2 .nf $ npm hook add @npm https://example.com/ my-shared-secret .fi .RE .P List all your active hooks: .P .RS 2 .nf $ npm hook ls .fi .RE .P List your active hooks for the \fBlodash\fR package: .P .RS 2 .nf $ npm hook ls lodash .fi .RE .P Update an existing hook's url: .P .RS 2 .nf $ npm hook update id-deadbeef https://my-new-website.here/ .fi .RE .P Remove a hook: .P .RS 2 .nf $ npm hook rm id-deadbeef .fi .RE .SS "Configuration" .SS "\fBregistry\fR" .RS 0 .IP \(bu 4 Default: "https://registry.npmjs.org/" .IP \(bu 4 Type: URL .RE 0 .P The base URL of the npm registry. .SS "\fBotp\fR" .RS 0 .IP \(bu 4 Default: null .IP \(bu 4 Type: null or String .RE 0 .P This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with \fBnpm access\fR. .P If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one. .SS "See Also" .RS 0 .IP \(bu 4 \fB"Introducing Hooks" blog post\fR \fI\(lahttps://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm\(ra\fR .RE 0