README
slack-lambda-reporter
Simple logger for Slack, Made with aws-lambda in mind but works with any Node.js
Install:
npm i slack-lambda-reporter --save
Usage:
const logger = require('slack-lambda-reporter')({
key: process.env.slack,
channel: '#error',
username: 'Voldemort'
})
// simple message
logger.log('Harry Potter is dead!')
// with data
logger.log('Avada Kedavra!', {dobi:'free elf'})