Socket
Socket
Sign inDemoInstall

express-clickup

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    express-clickup

An Express middleware for handling validation of Clickup Webhooks


Version published
Maintainers
1
Install size
17.3 kB
Created

Readme

Source

express-clickup

An Express middleware for handling validation of Clickup Webhooks

Downloads Install size GitHub package.json version NPM

Installation

npm install express-clickup

Usage

// javascript
const express = require('express');
const { clickupWebhook } = require('express-clickup');

const app = express();
app.use(express.json());

// Initialize middleware with config
const clickupWebhookOptions = {
	webhooks: [
		{
			id: '689a169-a000-4985-8676-6902b96d6627',
			secret: 'f7bc83f430538424b13298e6aa6',
		},
	],
};
const isValidClickupWebhook = clickupWebhook(clickupWebhookOptions);

// use the middleware on a route
app.post('/webhook', isValidClickupWebhook, (req, res) => {
	console.log('A valid clickup webhook has been received');
});

app.listen(3000, () => {
	console.log('The server is now live');
});
// typescript
import * as express from'express';
import { clickupWebhook, ClickupMiddlewareConfig } from 'express-clickup';

const app = express();
app.use(express.json());

// Initialize middleware with config
const clickupWebhookOptions: ClickupMiddlewareConfig = {
	webhooks: [
		{
			id: '689a169-a000-4985-8676-6902b96d6627',
			secret: 'f7bc83f430538424b13298e6aa6',
		},
	],
};
const isValidClickupWebhook = clickupWebhook(clickupWebhookOptions);

// use the middleware on a route
app.post('/webhook', isValidClickupWebhook, (req, res) => {
	console.log('A valid clickup webhook has been received');
});

app.listen(3000, () => {
	console.log('The server is now live');
});

Disclaimer

The clickup-express package is unofficial and therefor not endorsed or affiliated with ClickUp or it's subsidaries.

Keywords

FAQs

Last updated on 03 Oct 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc