New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dispatchedjs/cli

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dispatchedjs/cli

Dispatched - CLI

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

DispatchedJs - CLI

This is a TypeScript helper library for node.js server side to integrate Dispatched into your application.

NPM Version License example workflow

Usage

When developing locally, you can use the Dispatched CLI to start a local server that will receive webhook callbacks.

  1. Install the CLI globally:
npm install -g @dispatchedjs/cli
  1. Start the local server:
dispatchedjs listen --secret="any-webhook-secret-for-local-dev" --forward="http://localhost:3000/path/to/webhook/endpoint" --port=3000

Options:

  • --secret is the secret you want to use to verify the webhook requests. For security reasons, it is recommended to use a different secret than the one you use in production (you can use something simple like "abc123" for local development).
  • --forward is the URL that Dispatched will send the webhook requests to.
  • --port is the port you want the server to listen on. It defaults to 3100.

NOTE: Scheduled jobs will be processed immediately when using the local server.

License

MIT

Keywords

FAQs

Package last updated on 15 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc