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.

72 lines
1.8 KiB

  1. npm-hook(1) -- Manage registry hooks
  2. ===================================
  3. ## SYNOPSIS
  4. npm hook ls [pkg]
  5. npm hook add <entity> <url> <secret>
  6. npm hook update <id> <url> [secret]
  7. npm hook rm <id>
  8. ## EXAMPLE
  9. Add a hook to watch a package for changes:
  10. ```
  11. $ npm hook add lodash https://example.com/ my-shared-secret
  12. ```
  13. Add a hook to watch packages belonging to the user `substack`:
  14. ```
  15. $ npm hook add ~substack https://example.com/ my-shared-secret
  16. ```
  17. Add a hook to watch packages in the scope `@npm`
  18. ```
  19. $ npm hook add @npm https://example.com/ my-shared-secret
  20. ```
  21. List all your active hooks:
  22. ```
  23. $ npm hook ls
  24. ```
  25. List your active hooks for the `lodash` package:
  26. ```
  27. $ npm hook ls lodash
  28. ```
  29. Update an existing hook's url:
  30. ```
  31. $ npm hook update id-deadbeef https://my-new-website.here/
  32. ```
  33. Remove a hook:
  34. ```
  35. $ npm hook rm id-deadbeef
  36. ```
  37. ## DESCRIPTION
  38. Allows you to manage [npm
  39. hooks](https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm),
  40. including adding, removing, listing, and updating.
  41. Hooks allow you to configure URL endpoints that will be notified whenever a
  42. change happens to any of the supported entity types. Three different types of
  43. entities can be watched by hooks: packages, owners, and scopes.
  44. To create a package hook, simply reference the package name.
  45. To create an owner hook, prefix the owner name with `~` (as in, `~youruser`).
  46. To create a scope hook, prefix the scope name with `@` (as in, `@yourscope`).
  47. The hook `id` used by `update` and `rm` are the IDs listed in `npm hook ls` for
  48. that particular hook.
  49. The shared secret will be sent along to the URL endpoint so you can verify the
  50. request came from your own configured hook.
  51. ## SEE ALSO
  52. * ["Introducing Hooks" blog post](https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm)