New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@pomby/consolealerts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pomby/consolealerts

A simple alerting library for Pomby to alert on the console

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@pomby/consolealerts

A library for use with pomby to add alerts to the console

Sample Config

In your config you can add something like the following to your config:

{
  "consoleAlerts": [
    {
      "type": ["fail"],
      "output": "error",
      "template": "[{runTimeISO}] There was an error: {statusCode} with monitor: {title} in category {category}"
    }
  ]
}

The type is the only required portion, output will default to info and template will default to "Console Alert Triggered for: {title}"

Template Variables

  • title - Title of the monitor
  • runTime - Date of the run
  • runTimeISO - Date fo the run but formatted in ISO format
  • timing - Time in ms the run took
  • statusCode - Status code of the run (only on error)
  • type - Monitor Type used
  • category - Monitor Category

Types:

  • success
  • fail
  • noResponse
  • error
  • slow
  • testFail
  • badConfig

FAQs

Package last updated on 01 May 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