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

dorukgunes/slackerr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published