mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-08-13 21:00:18 +00:00
apps
data analysis
website
functions
node_modules
.bin
@types
accepts
array-flatten
body-parser
buffer-equal-constant-time
bytes
content-disposition
content-type
cookie
cookie-signature
cors
debug
depd
destroy
ecdsa-sig-formatter
ee-first
encodeurl
escape-html
etag
express
finalhandler
firebase-functions
forwarded
fresh
http-errors
iconv-lite
inherits
ipaddr.js
jsonwebtoken
jwa
jws
lodash
lodash.includes
lodash.isboolean
lodash.isinteger
lodash.isnumber
lodash.isplainobject
lodash.isstring
lodash.once
media-typer
merge-descriptors
methods
mime
mime-db
mime-types
ms
negotiator
npm
bin
changelogs
doc
html
doc
cli
npm-access.html
npm-adduser.html
npm-audit.html
npm-bin.html
npm-bugs.html
npm-build.html
npm-bundle.html
npm-cache.html
npm-ci.html
npm-completion.html
npm-config.html
npm-dedupe.html
npm-deprecate.html
npm-dist-tag.html
npm-docs.html
npm-doctor.html
npm-edit.html
npm-explore.html
npm-help-search.html
npm-help.html
npm-hook.html
npm-init.html
npm-install-ci-test.html
npm-install-test.html
npm-install.html
npm-link.html
npm-logout.html
npm-ls.html
npm-outdated.html
npm-owner.html
npm-pack.html
npm-ping.html
npm-prefix.html
npm-profile.html
npm-prune.html
npm-publish.html
npm-rebuild.html
npm-repo.html
npm-restart.html
npm-root.html
npm-run-script.html
npm-search.html
npm-shrinkwrap.html
npm-star.html
npm-stars.html
npm-start.html
npm-stop.html
npm-team.html
npm-test.html
npm-token.html
npm-uninstall.html
npm-unpublish.html
npm-update.html
npm-version.html
npm-view.html
npm-whoami.html
npm.html
files
misc
README.html
index.html
static
docfoot.html
dochead.html
favicon.ico
index.html
lib
man
node_modules
scripts
.licensee.json
.mailmap
.npmignore
.travis.yml
AUTHORS
CHANGELOG.md
CONTRIBUTING.md
LICENSE
Makefile
README.md
appveyor.yml
configure
make.bat
package.json
object-assign
on-finished
parseurl
path-to-regexp
proxy-addr
qs
range-parser
raw-body
safe-buffer
safer-buffer
send
serve-static
setprototypeof
statuses
type-is
unpipe
utils-merge
vary
public
.firebaserc
.gitignore
.runtimeconfig.json
firebase.json
firestore.indexes.json
firestore.rules
package-lock.json
.gitattributes
.gitignore
57 lines
4.7 KiB
HTML
57 lines
4.7 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<title>npm-hook</title>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" type="text/css" href="../../static/style.css">
|
|
<link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-hook.html">
|
|
<script async=true src="../../static/toc.js"></script>
|
|
|
|
<body>
|
|
<div id="wrapper">
|
|
|
|
<h1><a href="../cli/npm-hook.html">npm-hook</a></h1> <p>Manage registry hooks</p>
|
|
<h2 id="synopsis">SYNOPSIS</h2>
|
|
<pre><code>npm hook ls [pkg]
|
|
npm hook add <entity> <url> <secret>
|
|
npm hook update <id> <url> [secret]
|
|
npm hook rm <id></code></pre><h2 id="example">EXAMPLE</h2>
|
|
<p>Add a hook to watch a package for changes:</p>
|
|
<pre><code>$ npm hook add lodash https://example.com/ my-shared-secret</code></pre><p>Add a hook to watch packages belonging to the user <code>substack</code>:</p>
|
|
<pre><code>$ npm hook add ~substack https://example.com/ my-shared-secret</code></pre><p>Add a hook to watch packages in the scope <code>@npm</code></p>
|
|
<pre><code>$ npm hook add @npm https://example.com/ my-shared-secret</code></pre><p>List all your active hooks:</p>
|
|
<pre><code>$ npm hook ls</code></pre><p>List your active hooks for the <code>lodash</code> package:</p>
|
|
<pre><code>$ npm hook ls lodash</code></pre><p>Update an existing hook's url:</p>
|
|
<pre><code>$ npm hook update id-deadbeef https://my-new-website.here/</code></pre><p>Remove a hook:</p>
|
|
<pre><code>$ npm hook rm id-deadbeef</code></pre><h2 id="description">DESCRIPTION</h2>
|
|
<p>Allows you to manage <a href="https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm">npm
|
|
hooks</a>,
|
|
including adding, removing, listing, and updating.</p>
|
|
<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>
|
|
<p>To create a package hook, simply reference the package name.</p>
|
|
<p>To create an owner hook, prefix the owner name with <code>~</code> (as in, <code>~youruser</code>).</p>
|
|
<p>To create a scope hook, prefix the scope name with <code>@</code> (as in, <code>@yourscope</code>).</p>
|
|
<p>The hook <code>id</code> used by <code>update</code> and <code>rm</code> are the IDs listed in <code>npm hook ls</code> for
|
|
that particular hook.</p>
|
|
<p>The shared secret will be sent along to the URL endpoint so you can verify the
|
|
request came from your own configured hook.</p>
|
|
<h2 id="see-also">SEE ALSO</h2>
|
|
<ul>
|
|
<li><a href="https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm">"Introducing Hooks" blog post</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
|
|
<tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18> </td></tr>
|
|
<tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td colspan=6 style="width:60px;height:10px;background:#fff"> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td></tr>
|
|
<tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2> </td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td></tr>
|
|
<tr><td style="width:10px;height:10px;background:#fff" rowspan=2> </td></tr>
|
|
<tr><td style="width:10px;height:10px;background:#fff"> </td></tr>
|
|
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr>
|
|
<tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr>
|
|
</table>
|
|
<p id="footer">npm-hook — npm@6.5.0</p>
|
|
|