Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
4.7 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-hook</title>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="../../static/style.css">
  6. <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-hook.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm-hook.html">npm-hook</a></h1> <p>Manage registry hooks</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm hook ls [pkg]
  13. npm hook add &lt;entity&gt; &lt;url&gt; &lt;secret&gt;
  14. npm hook update &lt;id&gt; &lt;url&gt; [secret]
  15. npm hook rm &lt;id&gt;</code></pre><h2 id="example">EXAMPLE</h2>
  16. <p>Add a hook to watch a package for changes:</p>
  17. <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>
  18. <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>
  19. <pre><code>$ npm hook add @npm https://example.com/ my-shared-secret</code></pre><p>List all your active hooks:</p>
  20. <pre><code>$ npm hook ls</code></pre><p>List your active hooks for the <code>lodash</code> package:</p>
  21. <pre><code>$ npm hook ls lodash</code></pre><p>Update an existing hook&#39;s url:</p>
  22. <pre><code>$ npm hook update id-deadbeef https://my-new-website.here/</code></pre><p>Remove a hook:</p>
  23. <pre><code>$ npm hook rm id-deadbeef</code></pre><h2 id="description">DESCRIPTION</h2>
  24. <p>Allows you to manage <a href="https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm">npm
  25. hooks</a>,
  26. including adding, removing, listing, and updating.</p>
  27. <p>Hooks allow you to configure URL endpoints that will be notified whenever a
  28. change happens to any of the supported entity types. Three different types of
  29. entities can be watched by hooks: packages, owners, and scopes.</p>
  30. <p>To create a package hook, simply reference the package name.</p>
  31. <p>To create an owner hook, prefix the owner name with <code>~</code> (as in, <code>~youruser</code>).</p>
  32. <p>To create a scope hook, prefix the scope name with <code>@</code> (as in, <code>@yourscope</code>).</p>
  33. <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
  34. that particular hook.</p>
  35. <p>The shared secret will be sent along to the URL endpoint so you can verify the
  36. request came from your own configured hook.</p>
  37. <h2 id="see-also">SEE ALSO</h2>
  38. <ul>
  39. <li><a href="https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm">&quot;Introducing Hooks&quot; blog post</a></li>
  40. </ul>
  41. </div>
  42. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  43. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  44. <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
  45. <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
  46. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  47. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  48. <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
  49. <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
  50. </table>
  51. <p id="footer">npm-hook &mdash; npm@6.4.1</p>