Webhook handler for Linear
npm install linear-webhookWebhook handler for Linear.
 !CI 
Use the package manager npm to install linear-webhook.
``bash`
npm i linear-webhook
`ts
import { WebhookHandler, CreateIssueWebhook } from "linear-webhook";
const handler = new WebhookHandler();
handler.addCallback
console.log("This event is CreateIssueWebhook.");
console.log(Action: ${webhook.action}, Type: ${webhook.type});
});
(async () => {
await handler.execCallback(webhook);
})();
`
output
`planetext``
This event is CreateIssueWebhook.
Action: create, Type: Issue