Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (15 loc) · 570 Bytes

README.md

File metadata and controls

30 lines (15 loc) · 570 Bytes

Slackerr

A small library that sends error to your slack channel

Installation

npm install slackerr --save

Usage

const Slackerr = require('slackerr')
const slackerr = new Slackerr('yourslackwebhookurl', {channel: "#errors", icon_emoji: ":boom:"})

try{
    throw new Error("example error")
} catch(err) {
    slackerr.report(err) // without extra detail
    slackerr.report(err, {username: 'test'}) // with detail
}

Example: enter image descriasdasption here