Socket
Book a DemoInstallSign in
Socket

egg-webhook

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-webhook

egg webhook插件

2.0.3
latest
Source
npmnpm
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

egg-webhook

  • egg webhook 插件
  • typescript

支持

  • 钉钉机器人

plugin.js 配置


  webhook: {
    enable: true,
    package: 'egg-webhook',
  },

config.default.js 配置

config.webhook = {
    dingtalk: {
      url: '',
      startmsg: false,  // 应用启动通知,false=不通知,true=所有主机启动都通知,Array=只有配置的主机启动才通知
    },
  };

调用

const retVal = await ctx.helper.getWebhook().dingtalk.sendText('zyy: unit test');

Keywords

nodejs

FAQs

Package last updated on 26 Aug 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.