simple-slack

Simple Slack error logger

Usage no npm install needed!

<script type="module">
  import simpleSlack from 'https://cdn.skypack.dev/simple-slack';
</script>

README

Simple slack

Simple slack error message logger

Installation

npm install simple-slack

Initialization

var simpleSlack = require('simple-slack');
var SLACK = new simpleSlack(webhook, context);

Example

var SLACK = new simpleSlack("https://hooks.slack.com/services/abc", "main.js");
SLACK.ERR("Failed to do something:\n\n" + data);