Socket
Book a DemoInstallSign in
Socket

pm2-notifier

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2-notifier

PM2 notifier. Sending notifications via DingTalk or Feishu.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

PM2 Notifier

Supported Messaging Tools

  • DingTalk (钉钉)
  • Feishu (飞书)

Installation

pm2 install pm2-notifier

Usage

Config

OptionTypeRequiredDefault
eventsstring[]no['log:err', 'process:exception', 'process:event']
pollingnumberno10000 (ms)
max_polling_timenumberno60000 (ms)
dingtalkobjectno
- access_tokenstringyes
- secretstringyes
- at_mobilesstring[]no
- at_allbooleannofalse
- enablebooleannotrue
feishuobjectno
- access_tokenstringyes
- enablebooleannotrue

Example

Add environment variables in your ecosystem file, here is an example write in yaml format.

apps:
  - script: ./main.js
    name: app
    env_notifier:
      events:
        - log:err
        - process:event
      dingtalk:
        access_token: # your dingtalk access token
        secret: # your dingtalk secret
        at_all: true
      feishu:
        access_token: # your feishu access token
        enable: false # disable feishu notification

Now, start your processes with pm2 start ecosystem.config.yml.

License

MIT

Copyright (c) 2020, Acathur

Keywords

pm2

FAQs

Package last updated on 18 Aug 2020

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.