1.0.3 • Published 4 years ago

error-boy v1.0.3

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

error-boy

A node library to push production errors into Google Chat.

Installation

requires Node.js to run.

Install the dependencies and devDependencies and start the server.

$ cd project
$ npm install error-boy --save

Import Library

index.js

const errorBoy = require("error-boy");
const webhookURL = "https://chat.googleapis.com/v1/XXXXXXXXXXXXXXXXXXXXXXX";

errorBoy.init(webhookURL);

try {
  throw new Error("Invalid function");
} catch (err) {
  errorBoy.log(err.message)
}

rename webhookURL to your google chat webhook. what is webhookURL

License

MIT

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago