A small library that sends error to your slack channel
npm install slackerr --save
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
}