/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/man/man1
NameSizeModeActions
npm-access.136470644editdlrm
npm-adduser.124860644editdlrm
npm-audit.1159870644editdlrm
npm-bin.19570644editdlrm
npm-bugs.133000644editdlrm
npm-cache.131390644editdlrm
npm-ci.1107600644editdlrm
npm-completion.110010644editdlrm
npm-config.141760644editdlrm
npm-dedupe.191810644editdlrm
npm-deprecate.118950644editdlrm
npm-diff.198670644editdlrm
npm-dist-tag.155320644editdlrm
npm-docs.132830644editdlrm
npm-doctor.150520644editdlrm
npm-edit.111400644editdlrm
npm-exec.1123960644editdlrm
npm-explain.129630644editdlrm
npm-explore.110750644editdlrm
npm-find-dupes.168280644editdlrm
npm-fund.139920644editdlrm
npm-help-search.18650644editdlrm
npm-help.110750644editdlrm
npm-hook.126910644editdlrm
npm-init.1101650644editdlrm
npm-install-ci-test.188450644editdlrm
npm-install-test.189210644editdlrm
npm-install.1248140644editdlrm
npm-link.1122530644editdlrm
npm-logout.118950644editdlrm
npm-ls.190990644editdlrm
npm-org.122860644editdlrm
npm-outdated.164450644editdlrm
npm-owner.133920644editdlrm
npm-pack.138610644editdlrm
npm-ping.18440644editdlrm
npm-pkg.183540644editdlrm
npm-prefix.113250644editdlrm
npm-profile.147070644editdlrm
npm-prune.161140644editdlrm
npm-publish.179370644editdlrm
npm-query.154800644editdlrm
npm-rebuild.148010644editdlrm
npm-repo.130750644editdlrm
npm-restart.116980644editdlrm
npm-root.111590644editdlrm
npm-run-script.181590644editdlrm
npm-search.139260644editdlrm
npm-set-script.126790644editdlrm
npm-shrinkwrap.19770644editdlrm
npm-star.117930644editdlrm
npm-stars.17760644editdlrm
npm-start.118270644editdlrm
npm-stop.114570644editdlrm
npm-team.144220644editdlrm
npm-test.113690644editdlrm
npm-token.152640644editdlrm
npm-uninstall.145340644editdlrm
npm-unpublish.147690644editdlrm
npm-unstar.116390644editdlrm
npm-update.1124950644editdlrm
npm-version.177080644editdlrm
npm-view.157490644editdlrm
npm-whoami.18660644editdlrm
npm.158040644editdlrm
npx.163130644editdlrm
Edit: /home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/man/man1/npm-hook.1 (2691B)
.TH "NPM\-HOOK" "1" "February 2023" "" "" .SH "NAME" \fBnpm-hook\fR \- Manage registry hooks .SS Synopsis .P .RS 2 .nf npm hook add [\-\-type=] npm hook ls [pkg] npm hook rm npm hook update .fi .RE .P Note: This command is unaware of workspaces\. .SS Description .P Allows you to manage npm hooks \fIhttps://blog\.npmjs\.org/post/145260155635/introducing\-hooks\-get\-notifications\-of\-npm\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~\fP (as in, \fB~youruser\fP)\. .P To create a scope hook, prefix the scope name with \fB@\fP (as in, \fB@yourscope\fP)\. .P The hook \fBid\fP used by \fBupdate\fP and \fBrm\fP are the IDs listed in \fBnpm hook ls\fP 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\fP: .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\fP .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\fP 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\fP .RS 0 .IP \(bu 2 Default: "https://registry\.npmjs\.org/" .IP \(bu 2 Type: URL .RE .P The base URL of the npm registry\. .SS \fBotp\fP .RS 0 .IP \(bu 2 Default: null .IP \(bu 2 Type: null or String .RE .P This is a one\-time password from a two\-factor authenticator\. It's needed when publishing or changing package permissions with \fBnpm access\fP\|\. .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 2 "Introducing Hooks" blog post \fIhttps://blog\.npmjs\.org/post/145260155635/introducing\-hooks\-get\-notifications\-of\-npm\fR .RE